Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
regexp: fix 64-bit performance regression #4153
The regexpdna benchmark in the shootout is significantly slower with the new 64-bit ints on amd64. Look into this. The most likely cause is extra memory use and thus extra garbage collection. The bulk of the regexp memory is already marked int32, though. A nice thing to do as Go 1.1 is wrapping up.
regex-dna 100000 GCC: gcc -m64 -O2 regex-dna.c -lpcre 0.48u 0.00s 0.49r Go 1.0.3: gc regex-dna 3.23u 0.01s 3.25r Go rev e0a3e88ff2ae (before switch to 64-bit ints) gc regex-dna 3.27u 0.00s 3.28r Go rev 5bc48b616305 (before componentgen fix) gc regex-dna 4.39u 0.01s 4.41r Go tip: gc regex-dna 3.21u 0.01s 3.22r