{"id":16677613,"url":"https://github.com/jamesmcm/data-oriented-example","last_synced_at":"2025-03-21T18:32:00.906Z","repository":{"id":41408739,"uuid":"279693930","full_name":"jamesmcm/data-oriented-example","owner":"jamesmcm","description":"Example of Data Oriented Design in Rust","archived":false,"fork":false,"pushed_at":"2020-07-26T10:17:57.000Z","size":10,"stargazers_count":50,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-13T13:27:01.636Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesmcm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-14T21:11:46.000Z","updated_at":"2024-08-15T12:52:57.000Z","dependencies_parsed_at":"2022-08-27T08:11:54.678Z","dependency_job_id":null,"html_url":"https://github.com/jamesmcm/data-oriented-example","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/jamesmcm%2Fdata-oriented-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmcm%2Fdata-oriented-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmcm%2Fdata-oriented-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmcm%2Fdata-oriented-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesmcm","download_url":"https://codeload.github.com/jamesmcm/data-oriented-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221817508,"owners_count":16885554,"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":["rust"],"created_at":"2024-10-12T13:27:02.394Z","updated_at":"2024-10-28T10:34:55.796Z","avatar_url":"https://github.com/jamesmcm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-oriented-example\n\nExperimenting with [Data Oriented Design](https://en.wikipedia.org/wiki/Data-oriented_design) in Rust.\n\nWritten for this blog post: http://jamesmcm.github.io/blog/2020/07/25/intro-dod/#en\n\nDone: \n\n* Benchmark of [Array of Structs vs. Struct of Arrays](https://en.wikipedia.org/wiki/AoS_and_SoA)\n\nSoA gets unrolled by compiler, results in ~50% speed up. \nGodbolt: https://godbolt.org/z/d8bjMb\n\n* Benchmark of pattern matching inside hot loop vs. outside\n\nOutside results in 50% speed up.\n\n* Benchmark of Linked List iteration vs. contiguous Vector\n\nVector shows consistent 90% speed up vs. Linked List iteration\n\n* Benchmark of dynamic dispatch vs. monomorphisation\n\nDynamic dispatch impedes vectorisation due to indirection, otherwise\ncost of lookup in vtable is small\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmcm%2Fdata-oriented-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesmcm%2Fdata-oriented-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmcm%2Fdata-oriented-example/lists"}