Live data from Hacker News

Make Ubuntu packages 90% faster by rebuilding them

gist.github.com

1–10 of 375 posts

Re: Make Ubuntu packages 90% faster by rebuilding them

#4

> What happens if you grab the jq source code from Launchpad, then configure and rebuild it with no flags at all? Even that is about 2-4% faster than the Ubuntu binary package. Why wouldn't that be identical?

Because instead of using the Debian build, I just used `./configure; make`

Re: Make Ubuntu packages 90% faster by rebuilding them

#7
post #3

Surprised it would be 90%. Are the packages all debug symbols? I recall trying with march=native and seeing some improvement, but not enough to care at a system level.

> Are the packages all debug symbols?

Upstream is stripped actually. My final build here is 43x larger than the distro binary, partly due to having plentiful debug info.

Re: Make Ubuntu packages 90% faster by rebuilding them

#8

Could you release a fork of jq whose make does all this fanciness? I use jq A LOT so would love a turnkey solution to make it faster.

If I had the time to fork jq, I would convert the relevant part to C++ so it doesn't spend literally all of its time dynamically allocating strings it is just about to discard.
Post reply on HN