Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't allocate during default HashSet creation. #36734
This is good, because it's surprisingly common to create a HashMap and never
This commit gives
This speeds up rustc itself by 1.01--1.04x on most of the non-tiny
Some detailed measurements...
stage1 rustc (w/glibc malloc) doing debug builds.
stage1 rustc (w/jemalloc) doing debug builds.
BTW, this problem was identified with Valgrind's DHAT tool. Here is the resulting change in allocations for future-rs-test-all:
and for hyper: