{"id":16540459,"url":"https://github.com/fcwu/distributed-image-thumbnail","last_synced_at":"2026-05-11T15:33:06.725Z","repository":{"id":139401165,"uuid":"418625322","full_name":"fcwu/distributed-image-thumbnail","owner":"fcwu","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-18T18:49:41.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T07:33:39.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-18T18:38:28.000Z","updated_at":"2021-10-18T18:49:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"d302909b-9684-4794-b584-0d9cbc553cbe","html_url":"https://github.com/fcwu/distributed-image-thumbnail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdistributed-image-thumbnail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdistributed-image-thumbnail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdistributed-image-thumbnail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcwu%2Fdistributed-image-thumbnail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcwu","download_url":"https://codeload.github.com/fcwu/distributed-image-thumbnail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241774237,"owners_count":20018236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:52:30.508Z","updated_at":"2026-05-11T15:33:01.692Z","avatar_url":"https://github.com/fcwu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![arch](arch.png)\n\n## development\n\n ```bash\ngo build nats-resize.go\ngo build nats-fileindex.go\ngo build resize-image.go\n```\n\n## result\n\nTest environment:\n\n- PC: AMD Ryzen 9 3900XT 12-Core Processor\n- NAS: NAS TS-1282\n- 150 pictures\n\n### v1\n\n```bash\n./resize-image nature output\n```\n\nresult\n\n- PC: 150 pics = 0.036 pic/sec (70.59s user 31.81s system 1883% cpu 5.438 total)\n- NAS: 150 pics =  0.046 pic/sec (0m7.004s)\n\n### v2\n\n```bash\n./nats-server\ntime ./nats-fileindex 127.0.0.1:4222 nature\nsudo ./nats-resize -w 2 172.17.34.72:4222 ~/mnt/nfs/thumbnail/nature ~/mnt/nfs/thumbnail/output\n```\n\nresult\n\n- PC*1:  0m23.568s\n- PC*24: 0m5.996s\n- NAS*7: 0m8.218s\n- PC*24 + NAS*7: 0m6.123s\n- PC*24 + NAS*2: 0m7.560s\n\n### conclusion\n\n1. NATS: 0.036 -\u003e 0.040 -11%\n2. NATS: 0.046 -\u003e 0.055 -19%\n3. 單獨 PC 很好\n4. 單獨 PC indexing 速度要快\n5. PC + NAS比單獨 PC 差\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcwu%2Fdistributed-image-thumbnail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcwu%2Fdistributed-image-thumbnail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcwu%2Fdistributed-image-thumbnail/lists"}