{"id":18047163,"url":"https://github.com/jw3126/threadingtools.jl","last_synced_at":"2025-08-11T06:22:07.882Z","repository":{"id":81965012,"uuid":"193167672","full_name":"jw3126/ThreadingTools.jl","owner":"jw3126","description":null,"archived":false,"fork":false,"pushed_at":"2019-06-26T09:48:54.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T04:26:53.644Z","etag":null,"topics":["julia","multithreading"],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jw3126.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":"2019-06-21T22:41:03.000Z","updated_at":"2020-05-07T14:31:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"131f28e7-0c15-43e1-add3-c45d275d3561","html_url":"https://github.com/jw3126/ThreadingTools.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jw3126/ThreadingTools.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FThreadingTools.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FThreadingTools.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FThreadingTools.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FThreadingTools.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jw3126","download_url":"https://codeload.github.com/jw3126/ThreadingTools.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FThreadingTools.jl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269838587,"owners_count":24483242,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["julia","multithreading"],"created_at":"2024-10-30T19:10:31.116Z","updated_at":"2025-08-11T06:22:07.819Z","avatar_url":"https://github.com/jw3126.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThreadingTools\n\n[![Build Status](https://travis-ci.com/jw3126/ThreadingTools.jl.svg?branch=master)](https://travis-ci.com/jw3126/ThreadingTools.jl)\n[![Build Status](https://ci.appveyor.com/api/projects/status/github/jw3126/ThreadingTools.jl?svg=true)](https://ci.appveyor.com/project/jw3126/ThreadingTools-jl)\n[![Codecov](https://codecov.io/gh/jw3126/ThreadingTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jw3126/ThreadingTools.jl)\n[![Coveralls](https://coveralls.io/repos/github/jw3126/ThreadingTools.jl/badge.svg?branch=master)](https://coveralls.io/github/jw3126/ThreadingTools.jl?branch=master)\n\n# Usage\n\nThreadingTools defines threaded versions of the following functions: `map, map!, mapreduce, reduce, sum, prod, minimum, maximum`\n```julia\njulia\u003e using ThreadingTools\n\njulia\u003e using BenchmarkTools\n\njulia\u003e Threads.nthreads()\n4\n\njulia\u003e data = randn(10^6);\n\njulia\u003e @btime sum(sin, data)\n  13.114 ms (1 allocation: 16 bytes)\n279.2390057547361\n\njulia\u003e @btime tsum(sin,data)\n  3.722 ms (60 allocations: 4.09 KiB)\n279.23900575473743\n\njulia\u003e @btime mapreduce(sin,*,data)\n  15.607 ms (1 allocation: 16 bytes)\n0.0\n\njulia\u003e @btime tmapreduce(sin,*,data)\n  3.718 ms (60 allocations: 4.08 KiB)\n0.0\n```\n\n# Credits\nThreadingTools was inspired by and reuses some code of [`KissThreading`](https://github.com/mohamed82008/KissThreading.jl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw3126%2Fthreadingtools.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjw3126%2Fthreadingtools.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw3126%2Fthreadingtools.jl/lists"}