{"id":31032335,"url":"https://github.com/tortar/indexedstructvectors.jl","last_synced_at":"2025-09-14T00:57:37.118Z","repository":{"id":313521199,"uuid":"1051717160","full_name":"Tortar/IndexedStructVectors.jl","owner":"Tortar","description":"Struct Vectors with stable indices in Julia","archived":false,"fork":false,"pushed_at":"2025-09-07T02:12:02.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T04:13:37.411Z","etag":null,"topics":["array","indexing","julia","soa","vector"],"latest_commit_sha":null,"homepage":"","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/Tortar.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-06T15:18:54.000Z","updated_at":"2025-09-07T02:18:31.000Z","dependencies_parsed_at":"2025-09-07T04:14:00.010Z","dependency_job_id":"ace1d6d8-2af0-424a-b083-4cec2a7c9c19","html_url":"https://github.com/Tortar/IndexedStructVectors.jl","commit_stats":null,"previous_names":["tortar/structdicts.jl","tortar/indexedstructarrays.jl"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Tortar/IndexedStructVectors.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tortar%2FIndexedStructVectors.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tortar%2FIndexedStructVectors.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tortar%2FIndexedStructVectors.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tortar%2FIndexedStructVectors.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tortar","download_url":"https://codeload.github.com/Tortar/IndexedStructVectors.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tortar%2FIndexedStructVectors.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275047914,"owners_count":25396337,"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-09-13T02:00:10.085Z","response_time":70,"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":["array","indexing","julia","soa","vector"],"created_at":"2025-09-14T00:57:31.802Z","updated_at":"2025-09-14T00:57:37.095Z","avatar_url":"https://github.com/Tortar.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# IndexedStructVectors.jl\n\n[![Build Status](https://github.com/Tortar/IndexedStructVectors.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/Tortar/IndexedStructVectors.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Coverage](https://codecov.io/gh/Tortar/IndexedStructVectors.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/Tortar/IndexedStructVectors.jl)\n[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)\n\n`IndexedStructVectors.jl` implements indexable containers storing data with a structure-of-vectors layout. Differently from [`StructArrays.jl`](https://github.com/JuliaArrays/StructArrays.jl), each\nrow is assigned a stable identifier when initialized which can then be used to index into the container.\nThis allows to support `O(1)` access, addition and deletion of ID-backed rows, without compromising the performance of operations of single homogeneous fields of the structure, unlike a vector/dictionary of structs.\n\n## Examples\n\n```julia\njulia\u003e using IndexedStructVectors\n\njulia\u003e s = IndexedStructVector((name = [\"alice\",\"bob\"], age = [30, 40])) # initial IDs are 1 and 2\nIndexedStructVector{ID::Vector{Int64}, name::Vector{String}, age::Vector{Int64}}(ID = [1, 2], name = [\"alice\", \"bob\"], age = [30, 40])\n\njulia\u003e x = s[1]\nIndexedView(ID = 1, name = \"alice\", age = 30)\n\njulia\u003e x.name\n\"alice\"\n\njulia\u003e x.age = 41\n41\n\njulia\u003e push!(s, (name = \"carol\", age = 25));\n\njulia\u003e delete!(s, 2); # delete bob by id\n\njulia\u003e s[2] # now 2 is no longer a valid key\nERROR: KeyError: key 2 not found\n...\n\njulia\u003e sum(s.age) # this will just use the stored age vector\n66\n```\n\n## Contributing\n\nContributions are welcome! If you encounter any issues, have suggestions for improvements, or would like to add new features, feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftortar%2Findexedstructvectors.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftortar%2Findexedstructvectors.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftortar%2Findexedstructvectors.jl/lists"}