Live data from Hacker News

Make Ubuntu packages 90% faster by rebuilding them

gist.github.com

21–30 of 375 posts

Re: Make Ubuntu packages 90% faster by rebuilding them

#21

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.

https://github.com/01mf02/jaq?tab=readme-ov-file#performance jaq runs 5x faster on my machine in some cases

jaq is nice. It just loses, performance-wise, to the final step in this article, and it can't do the second mentioned workload (yet) so I didn't include it.

Re: Make Ubuntu packages 90% faster by rebuilding them

#23

O3 is a bad idea if the package is important. While that’s a dated opinion based on older experiences (Gentoo, various server software, etc), I suspect it’s still the easiest way to get exposed to compiler bugs.

Is a bad ideia if you shove that into people expecting stability. But for self compiling is ok because you'll have a clear culprit in case of failure.

Re: Make Ubuntu packages 90% faster by rebuilding them

#24

> 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?

Could be measurement noise..

I tough about that. The output of hiperfine mention nothing chi-test or anything about testing distributions…

Re: Make Ubuntu packages 90% faster by rebuilding them

#25

O3 is a bad idea if the package is important. While that’s a dated opinion based on older experiences (Gentoo, various server software, etc), I suspect it’s still the easiest way to get exposed to compiler bugs.

If you're going to offer unsupported FUD, I would prefer you direct the FUD at NDEBUG and the fear that it could have disabled a load-bearing assertion.

Re: Make Ubuntu packages 90% faster by rebuilding them

#26
I’m almost more amazed that someone figured out jq’s syntax and got some use out of it.

In all seriousness though, are you sure some of this isn’t those blocks being loaded into some kind of file system cache the second and third times?

How about if you rebooted and then ran the mimalloc version?

Re: Make Ubuntu packages 90% faster by rebuilding them

#27
Misleading title, it's 90% of the faster time. It's about 45% faster.

It's actually a little bit interesting, if you are interested in how we use language. You could argue that now you now get 90% more work done in the same amount of time, and that would align with other 'speed' units that we commonly use (miles per hour, words per minute, bits per second). However, the convention in computer performance is to measure time for a fixed amount of work. I would guess that this is because generally we have a fixed amount of work and what might vary is how long we wait for it (and that is absolutely true in the case of this blog post) so we put time in the numerator.

It's a very interesting post and very well done, but it's not 90% faster.

Re: Make Ubuntu packages 90% faster by rebuilding them

#28
post #26

I’m almost more amazed that someone figured out jq’s syntax and got some use out of it. In all seriousness though, are you sure some of this isn’t those blocks being loaded into some kind of file system cache the second and third times? How about if you rebooted and then ran the mimalloc version?

The benchmarking tool being used in this post accounts for that using multiple runs for each invocation, together with a warmup run that is not included in the result metric.

Re: Make Ubuntu packages 90% faster by rebuilding them

#30
post #25

O3 is a bad idea if the package is important. While that’s a dated opinion based on older experiences (Gentoo, various server software, etc), I suspect it’s still the easiest way to get exposed to compiler bugs.

If you're going to offer unsupported FUD, I would prefer you direct the FUD at NDEBUG and the fear that it could have disabled a load-bearing assertion.

Load bearing assertions.

Even Design by Contract in Eiffel turns off assertions in production.

Post reply on HN