{"id":21917269,"url":"https://github.com/condy0919/algo","last_synced_at":"2025-08-04T11:33:51.372Z","repository":{"id":71860104,"uuid":"248718364","full_name":"condy0919/algo","owner":"condy0919","description":"Algorithms for dsa course","archived":false,"fork":false,"pushed_at":"2020-04-13T15:50:34.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T18:46:33.596Z","etag":null,"topics":["algorithm","data-structure"],"latest_commit_sha":null,"homepage":null,"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/condy0919.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-03-20T09:38:48.000Z","updated_at":"2023-03-05T05:48:29.000Z","dependencies_parsed_at":"2023-06-13T05:45:47.874Z","dependency_job_id":null,"html_url":"https://github.com/condy0919/algo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/condy0919/algo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condy0919%2Falgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condy0919%2Falgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condy0919%2Falgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condy0919%2Falgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/condy0919","download_url":"https://codeload.github.com/condy0919/algo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/condy0919%2Falgo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268689330,"owners_count":24291075,"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-08-04T02:00:09.867Z","response_time":79,"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":["algorithm","data-structure"],"created_at":"2024-11-28T19:29:15.595Z","updated_at":"2025-08-04T11:33:51.325Z","avatar_url":"https://github.com/condy0919.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status][github-ci-badge]][github-link]\n[![MIT License][license-badge]](LICENSE)\n[![Language][language-badge]][language-link]\n\n# algo\n\nAlgorithms for dsa course.\n\n## Vector\n\nOptimized `vector` for `push_back()` and `emplace_back()` operations.\n\n# Benchmark\n\nRun\n\n``` shell\ncmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DENABLE_BENCHMARK=On\ncmake --build build\n```\n\nto build all benchmarks.\n\n## `algo::Vector` vs `std::vector`\n\nRun\n\n``` shell\n./build/benchmark/vector_benchmark\n```\n\nto get the result.\n\n| Operation                    | `std::vector` (ns) | `algo::Vector` (ns) |\n|------------------------------|-------------------:|--------------------:|\n| **push_back** trivial        |               7.64 |                1.93 |\n| **emplace_back** non-trivial |               72.8 |                81.2 |\n| insert_front trivial         |               6056 |                8177 |\n| insert_front non-trivial     |              76253 |               78311 |\n| insert_back trivial          |               6.52 |                5.60 |\n| insert_back non-trivial      |               71.3 |                73.5 |\n\n[github-link]: https://github.com/condy0919/algo\n[github-ci-badge]: https://github.com/condy0919/algo/workflows/CI/badge.svg\n[language-link]: https://en.cppreference.com/w/cpp/compiler_support\n[language-badge]: https://img.shields.io/badge/Language-C%2B%2B17-blue.svg\n[license-badge]: https://img.shields.io/badge/license-MIT-007EC7.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcondy0919%2Falgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcondy0919%2Falgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcondy0919%2Falgo/lists"}