Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. diff --git a/Objects/setobject.c b/Objects/setobject.c
  2. index 2ccf183..db9b86b 100644
  3. --- a/Objects/setobject.c
  4. +++ b/Objects/setobject.c
  5. @@ -302,7 +302,7 @@ set_table_resize(PySetObject *so, Py_ssize_t minused)
  6. setentry small_copy[PySet_MINSIZE];
  7.  
  8. assert(minused >= 0);
  9. - minused = (minused > 50000) ? minused * 2 : minused * 4;
  10. + minused *= 2;
  11.  
  12. /* Find the smallest table size > minused. */
  13. /* XXX speed-up with intrinsics */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement