Post AWdmMGZ3BHuQ2Ar7Vg by mgorny@fosstodon.org
(DIR) More posts by mgorny@fosstodon.org
(DIR) Post #AWdmMGZ3BHuQ2Ar7Vg by mgorny@fosstodon.org
2023-06-13T06:42:37Z
1 likes, 0 repeats
As #pypi.eclass became more commonly used in #Gentoo, its performance started being important. Subshells in #bash are never a good thing.I've prepared a patchset that eliminates all subshells from the most common use cases, making it 16 times faster! Yep, my poor man's benchmark noted a change from roughly 3.1 s for a 1000 runs to 0.19 s, or from 320 runs a second to 5300 runs a second.The biggest speedup is thanks to Eli Schwartz's idea. Thanks!https://github.com/gentoo/gentoo/pull/31404