{"id":23335951,"url":"https://github.com/libsugar/bettercollections","last_synced_at":"2025-08-14T18:36:55.064Z","repository":{"id":209864502,"uuid":"725151849","full_name":"libsugar/BetterCollections","owner":"libsugar","description":"Some better collection implementations than the system library","archived":false,"fork":false,"pushed_at":"2024-02-29T11:16:13.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T10:53:45.616Z","etag":null,"topics":["arraypool","collections","concurrent","data-structures","vector"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/BetterCollections/","language":"C#","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/libsugar.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":"2023-11-29T14:46:01.000Z","updated_at":"2024-05-22T02:21:35.000Z","dependencies_parsed_at":"2023-12-04T15:26:48.949Z","dependency_job_id":"79c543ca-6978-492a-aba0-7c9436bfd9ee","html_url":"https://github.com/libsugar/BetterCollections","commit_stats":null,"previous_names":["libsugar/bettercollections"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsugar%2FBetterCollections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsugar%2FBetterCollections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsugar%2FBetterCollections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsugar%2FBetterCollections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libsugar","download_url":"https://codeload.github.com/libsugar/BetterCollections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111959,"owners_count":21049577,"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":["arraypool","collections","concurrent","data-structures","vector"],"created_at":"2024-12-21T02:11:28.722Z","updated_at":"2025-04-09T20:52:09.953Z","avatar_url":"https://github.com/libsugar.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BetterCollections\n\n[![.NET](https://github.com/libsugar/BetterCollections/actions/workflows/dotnet.yml/badge.svg)](https://github.com/libsugar/BetterCollections/actions/workflows/dotnet.yml)\n[![Nuget](https://img.shields.io/nuget/v/BetterCollections)](https://www.nuget.org/packages/BetterCollections/)\n![MIT](https://img.shields.io/github/license/libsugar/BetterCollections)\n[![ApiDoc](https://img.shields.io/badge/ApiDoc-222222?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAXCAYAAAAV1F8QAAAACXBIWXMAAAsSAAALEgHS3X78AAABpElEQVRIib2WQU7CUBCGfwh7dOdO8sc9uHMnJzC6N7Hu3KknsJzA3kC8AZ5AuEE5ABNMXLhE414zZJ4OpS1gin8C75U3ne9N5zHT2mQyiQC0sKghgC7KNQMwIDldYTdXwxxe5KzdrXH/vYiMAMQkh2WGdZIaUW+dXRXoGMCziCS6LCI7uSD9IhkDeCpw9A7gkGQtfADsAjgDMHJ21yLSBxCJyGkuyJQWgFKSC2skZyQ1P/rYL92SpmAPQF9Eok1BpSLZz8CuFATgwSJcAs3+AsIvLDz6JoCPEGGIrF58+8aK3Q0nAMY2jysFWR5f7LLtUrEvIp0qI1IV/XkrB3m9uXnrv0CVHoZSbRN04C+2Cfp082nVoI6NesyPbK61clAZyCpA0y4HVtVVidbGSkDWGhL306uNY+sMCznqIF+5/SUDGbpotLed2yP7aRceVOSwXQLpGiTYPFpx1leDrm/zDberqMRhag5S25A60tFvQiFaxW90XfPifTSsG6pBCL0sqpDgrG5JJiKigKXuqtK3oC87jr4gzltyxtZDgr2ertVvQgC+AfGSgtzXl3gYAAAAAElFTkSuQmCC)](https://libsugar.github.io/BetterCollections/)\n\n### WIP\n\n- All containers optionally use ArrayPool\n- Buffers\n  - `DirectAllocationArrayPool\u003cT\u003e`  \n    Pretend to have pooling\n  - `ArrayPoolFactory`  \n    Factory abstraction provides array pool implementation\n- Not Sync / Non Concurrent / No Thread Safe\n  - `Vec\u003cT\u003e`  \n    Reimplemented `List\u003cT\u003e`, can unsafely retrieve the internal Array or as Span, Memory\n    *todo* methods same to `List\u003cT\u003e`\n- Sync / Concurrent / Thread safe\n  - `OnceInit\u003cT\u003e`  \n    Similar to `Lazy\u003cT\u003e`, but provides init function when getting  \n    Inspired by rust `OnceCell\u003cT\u003e`\n- Memories\n  - `Box\u003cT\u003e` `ReadOnlyBox\u003cT\u003e`  \n    Simply wrap a value onto the heap\n  - `ArrayRef\u003cT\u003e` `ReadOnlyArrayRef\u003cT\u003e`  \n    A **fat reference** *(`T[] + offset`)* that can be safely put on the **heap**, not a ref struct\n  - `MemoryRef\u003cT\u003e` `ReadOnlyMemoryRef\u003cT\u003e`  \n    A **fat reference** *(`Memory\u003cT\u003e + offset`)* that can be safely put on the **heap**, not a ref struct\n  - `OffsetRef\u003cT\u003e` `ReadOnlyOffsetRef\u003cT\u003e`  \n    A **fat reference** *(`object + offset`)* that can be safely put on the **heap**, not a ref struct\n  - `MemoryEx`\n    - Provides `GetEnumerator` for `Memory\u003cT\u003e` `ReadOnlyMemory\u003cT\u003e`\n- Cryptography\n  - `AHasher`  \n    A hasher that ensures even distribution of each bit  \n    If possible use Aes SIMD acceleration (.net7+)  \n    Algorithm from https://github.com/tkaitchuck/aHash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsugar%2Fbettercollections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibsugar%2Fbettercollections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsugar%2Fbettercollections/lists"}