{"id":15687832,"url":"https://github.com/orisano/intersect","last_synced_at":"2025-03-30T11:42:23.273Z","repository":{"id":68081702,"uuid":"281956518","full_name":"orisano/intersect","owner":"orisano","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-24T08:00:42.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T05:34:30.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orisano.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":"2020-07-23T13:17:41.000Z","updated_at":"2021-10-24T08:00:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ebd49a1-8cfc-4293-b627-e00f886640d6","html_url":"https://github.com/orisano/intersect","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/orisano%2Fintersect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fintersect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fintersect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fintersect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/intersect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314125,"owners_count":20757457,"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-03T17:51:18.867Z","updated_at":"2025-03-30T11:42:23.248Z","avatar_url":"https://github.com/orisano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# intersect\n![Test](https://github.com/orisano/intersect/workflows/Test/badge.svg)\n\nA library of intersect to sorted array. inspired by this article. https://lemire.me/blog/2019/01/16/faster-intersections-between-sorted-arrays-with-shotgun/\n\n## Installation\n```bash\ngo get github.com/orisano/intersect\n```\n\n## Benchmark\n```\ngoos: darwin\ngoarch: amd64\npkg: github.com/orisano/intersect\nBenchmarkIntersect/n=100000000,nTest=32,mMax=1000000000/Naive-8   \t      10\t 107656768 ns/op\nBenchmarkIntersect/n=100000000,nTest=32,mMax=1000000000/Galloping-8         \t  797413\t      1477 ns/op\nBenchmarkIntersect/n=100000000,nTest=32,mMax=1000000000/Shotgun1-8          \t 1000000\t      1109 ns/op\nBenchmarkIntersect/n=100000000,nTest=32,mMax=1000000000/Shotgun4-8          \t 1671450\t       701 ns/op\nBenchmarkIntersect/n=10000,nTest=7000,mMax=1000000000/Naive-8               \t   21763\t     54934 ns/op\nBenchmarkIntersect/n=10000,nTest=7000,mMax=1000000000/Galloping-8           \t   26590\t     44635 ns/op\nBenchmarkIntersect/n=10000,nTest=7000,mMax=1000000000/Shotgun1-8            \t    8660\t    132265 ns/op\nBenchmarkIntersect/n=10000,nTest=7000,mMax=1000000000/Shotgun4-8            \t    8527\t    140649 ns/op\nPASS\nok  \tgithub.com/orisano/intersect\t37.614s\n```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nApache 2.0\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fintersect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fintersect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fintersect/lists"}