Skip to content
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

Consider batch allocation strategy for RBT #10

Open
Chrinkus opened this issue Jun 7, 2022 · 1 comment
Open

Consider batch allocation strategy for RBT #10

Chrinkus opened this issue Jun 7, 2022 · 1 comment
Labels
question Further information is requested
Milestone

Comments

@Chrinkus
Copy link
Owner

Chrinkus commented Jun 7, 2022

One use case of my red-black tree had over 140k individual allocations. Would this structure be improved if it had an underlying batch allocation structure?

The array's solution to this is exponential growth but an array of node*'s would require reallocations and data movement. Perhaps a linked-list "pool" of progressively larger allocations?

@Chrinkus Chrinkus added the question Further information is requested label Jun 7, 2022
@Chrinkus Chrinkus added this to the v0.3 milestone Jun 7, 2022
@Chrinkus
Copy link
Owner Author

Chrinkus commented Jul 8, 2022

This leads into a larger discussion about containers taking allocator types.

@Chrinkus Chrinkus modified the milestones: v0.3, v0.x - Future Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant