Skip to content

Fast performance degradation #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hia3 opened this issue May 24, 2018 · 1 comment
Closed

Fast performance degradation #27

hia3 opened this issue May 24, 2018 · 1 comment
Assignees

Comments

@hia3
Copy link

hia3 commented May 24, 2018

As #26 shows there is no clear correlation between number of inserted elements and performance of std::vector::push_back.

This is not the case for deferred_vector. More elements inserted - more time it will take to insert another one. For example, when there are 25 (cell A2) elements inserted, it is only 36 (cell C2) times slower than insertion into vector<scoped_ptr>, but if there are 4975 (cell A200) elements, it is 1498 (cell C200) times slower.

Inserting 1 million elements into deferred_vector will probably take N days.

@hsutter hsutter self-assigned this Sep 28, 2021
@hsutter
Copy link
Owner

hsutter commented Sep 28, 2021

Right, this is a proof of concept at smaller scale and not a production-quality scalable library. I invite people who write scalable GC arenas to use this interface as a starting point to experiment with a C++ opt-in GC heap.

@hsutter hsutter closed this as completed Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants