{"id":13736319,"url":"https://github.com/Vladar4/FastStack","last_synced_at":"2025-05-08T12:32:39.988Z","repository":{"id":138201334,"uuid":"65685526","full_name":"Vladar4/FastStack","owner":"Vladar4","description":"FastStack is dynamically resizable data structure optimized for fast iteration over the large arrays of similar elements avoiding memory fragmentation (e.g., update and rendering cycles of a game scene).","archived":false,"fork":false,"pushed_at":"2016-08-19T14:38:24.000Z","size":34,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:20:35.782Z","etag":null,"topics":["nim"],"latest_commit_sha":null,"homepage":null,"language":"Nimrod","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vladar4.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}},"created_at":"2016-08-14T20:42:02.000Z","updated_at":"2023-12-22T13:14:43.000Z","dependencies_parsed_at":"2024-01-06T11:49:15.194Z","dependency_job_id":"ecafaecd-19af-44b2-8cd0-bcdbeff7c576","html_url":"https://github.com/Vladar4/FastStack","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/Vladar4%2FFastStack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vladar4%2FFastStack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vladar4%2FFastStack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vladar4%2FFastStack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vladar4","download_url":"https://codeload.github.com/Vladar4/FastStack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253068966,"owners_count":21848896,"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":["nim"],"created_at":"2024-08-03T03:01:19.522Z","updated_at":"2025-05-08T12:32:34.975Z","avatar_url":"https://github.com/Vladar4.png","language":"Nimrod","readme":"FastStack\n=========\n\nFastStack is dynamically resizable data structure optimized for fast iteration over the large arrays of similar elements avoiding memory fragmentation (e.g., update and rendering cycles of a game scene).\n\nTools\n=====\n\n**bench_int** - Benchmark with int elements (low memory fragmentation case)\n\n**bench_ptr** - Benchmark with ptr elements (high memory fragmentation case)\n\n(using [nimbench](https://github.com/ivankoster/nimbench))\n\n**test** - Unit testing suite (using [unittest](http://nim-lang.org/docs/unittest.html))\n\nBenchmark (int)\n===============\n\n```nimrod\ntype\n  Elem = ref object of RootObj\n    data: int\n```\n\nComparing to seq and DoublyLinkedList on i5-2500K @ 4000MHz:\n```\n============================================================================\nGlobalBenchmark                                 relative  time/iter  iters/s\n============================================================================\nGlobalBenchmark                                            249.31ps    4.01G\n============================================================================\nbench_int.nim                                   relative  time/iter  iters/s\n============================================================================\nSequence                                                   108.55us    9.21K\nList                                                       545.62us    1.83K\nFastStack                                                  115.65us    8.65K\n```\n\n* Seq: 100.00%\n* List: 19.87%\n* FastStack: 93.92%\n\n![chart_bench_int](chart_bench_int.png \"bench_int chart\")\n\nBenchmark (ptr)\n===============\n\n```nimrod\ntype\n  Elem = ref object of RootObj\n    data: pointer\n```\n\nComparing to seq and DoublyLinkedList on i5-2500K @ 4000MHz:\n```\n============================================================================\nGlobalBenchmark                                 relative  time/iter  iters/s\n============================================================================\nGlobalBenchmark                                            249.31ps    4.01G\n============================================================================\nbench_ptr.nim                                   relative  time/iter  iters/s\n============================================================================\nSequence                                                     1.65ms   607.54\nList                                                         2.21ms   452.28\nFastStack                                                    1.38ms   724.24\n```\n\n* Seq: 100.00%\n* List: 74.44%\n* FastStack: 119.21%\n\n![chart_bench_ptr](chart_bench_ptr.png \"bench_ptr_chart\")\n\n","funding_links":[],"categories":["Data"],"sub_categories":["Data Structures"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVladar4%2FFastStack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVladar4%2FFastStack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVladar4%2FFastStack/lists"}