-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
performanceMust go fasterMust go fasterspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative
Description
I recently discovered this document in one of FB’s open source libraries for C++: https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md
It makes an interesting argument for growing arrays by a factor smaller than 2 when resizing them so that you can reuse memory more easily. Not sure how much you also need to use a custom malloc routine to get the benefits being claimed, but I thought I'd raise the idea in case we can get any performance enhancements from these ideas.
Metadata
Metadata
Assignees
Labels
performanceMust go fasterMust go fasterspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative