{"id":27941963,"url":"https://github.com/fumiama/sched","last_synced_at":"2025-05-07T11:24:58.900Z","repository":{"id":277841209,"uuid":"933675420","full_name":"fumiama/sched","owner":"fumiama","description":"Simple Golang parallel scheduler.","archived":false,"fork":false,"pushed_at":"2025-02-16T13:43:29.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T09:51:57.120Z","etag":null,"topics":["coroutines","golang","golang-library","golang-module","golang-package","multiprocessing","multithreading","parallel-computing","parallel-processing","parallel-programming","task-manager","task-runner","task-scheduler"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fumiama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-16T12:46:32.000Z","updated_at":"2025-02-16T13:45:34.000Z","dependencies_parsed_at":"2025-02-16T14:46:56.371Z","dependency_job_id":"309a977f-28f4-40d5-9fa0-098ccae8d093","html_url":"https://github.com/fumiama/sched","commit_stats":null,"previous_names":["fumiama/sched"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumiama%2Fsched","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumiama%2Fsched/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumiama%2Fsched/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumiama%2Fsched/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fumiama","download_url":"https://codeload.github.com/fumiama/sched/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252867040,"owners_count":21816601,"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":["coroutines","golang","golang-library","golang-module","golang-package","multiprocessing","multithreading","parallel-computing","parallel-processing","parallel-programming","task-manager","task-runner","task-scheduler"],"created_at":"2025-05-07T11:24:58.193Z","updated_at":"2025-05-07T11:24:58.883Z","avatar_url":"https://github.com/fumiama.png","language":"Go","readme":"# sched\nSimple Golang parallel scheduler.\n\n## Usage\n### Add one to each element in arr\n```go\narr := make([]uint8, 64*1024*1024) // 64M\n_, _ = NewTask(arr, func(_ int, x []byte) ([]byte, error) {\n    for i := range x {\n        arr[i]++\n    }\n    return arr, nil\n}, false, false).Collect(2*1024*1024, true, true) // 2M batch\n```\n### Get HTTP contents for earh URL\n```go\ncontents, err := NewTask(urls, func(_ int, urls []string) ([]string, error) {\n    for i, u := range url {\n        str, err := ... // get content\n        if err != nil {\n            return nil, err\n        }\n        urls[i] = str   // overlap\n    }\n    return urls, nil    // return result\n}, false, false).Collect(4, false, false) // 4 URLs as a group\n```\n\n## Bechmark\nA simple self-incrasing process is performed on a 64M uint8 array.\n```c\ngoos: darwin\ngoarch: arm64\npkg: github.com/fumiama/sched\ncpu: Apple M1\nBenchmarkSched/single-8         \t1000000000\t         0.02992 ns/op\t2242952686132.55 MB/s\t       0 B/op\t       0 allocs/op\nBenchmarkSched/para512K-8       \t1000000000\t         0.02483 ns/op\t2702751323377.81 MB/s\t       0 B/op\t       0 allocs/op\nBenchmarkSched/para1M-8         \t1000000000\t         0.02492 ns/op\t2693026104055.06 MB/s\t       0 B/op\t       0 allocs/op\nBenchmarkSched/para2M-8         \t1000000000\t         0.02133 ns/op\t3146490138908.33 MB/s\t       0 B/op\t       0 allocs/op\nPASS\nok  \tgithub.com/fumiama/sched\t1.119s\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumiama%2Fsched","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffumiama%2Fsched","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumiama%2Fsched/lists"}