[Bug libstdc++/50257] [C++0x] unordered_map slow initialization due to huge __prime_list
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 5 15:36:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50257
--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-05 15:35:49 UTC ---
Created attachment 25198
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25198
Yet another try
I'm also considering this variant: I guess overall I like it a tad better, in
particular for large number we add a comparison instead of two. And indeed an
uniform treatment for small numbers which also leads to __prime_list + 5.
What do you think?
More information about the Gcc-bugs
mailing list