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

flat_map slow insertion introduced in boost-1.80.0 #248

Open
biljazovic opened this issue Jun 1, 2023 · 1 comment
Open

flat_map slow insertion introduced in boost-1.80.0 #248

biljazovic opened this issue Jun 1, 2023 · 1 comment

Comments

@biljazovic
Copy link

biljazovic commented Jun 1, 2023

Hello,

I noticed that inserting elements in flat_map<int,int> is around 2 times slower going from version boost-1.79.0 to boost-1.80.0. I've found the relevant commit, 0d5068.

Sample code that is 2x faster when said commit is reverted:

#include <boost/container/flat_map.hpp>

int main() {
	boost::container::flat_map<int, int> m_flat_map;
	for (int i = 100000; i >= 0; --i) m_flat_map[i] = 1;
	return 0;
}

compiler: clang 15.0.7, linux-gnu platform

@psiha
Copy link

psiha commented Dec 21, 2023

upvote

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