Блог пользователя zc2707

Автор zc2707, история, 9 месяцев назад, По-английски

I read Blowing up unordered_map, and how to stop getting hacked on it but it doesn't work for GNU C++20 (64). Custom invocation of the hack shown in the blog shows:

x = 107897: 0.064 seconds, sum = 2666686666700000
x = 126271: 0.055 seconds, sum = 2666686666700000

which means that this hack doesn't work.

  • Проголосовать: нравится
  • +31
  • Проголосовать: не нравится

»
9 месяцев назад, # |
Rev. 5   Проголосовать: нравится +20 Проголосовать: не нравится

Here are the changes I made to the code in the blog to getting which prime got slowest.

code

In GNU G++20 11.2.0 (64bit winlibs) It give

x = 10273: 0.495 seconds
x = 20753: 1.110 seconds