diff options
| author | Florian Schmaus <flow@gentoo.org> | 2023-06-12 13:22:57 +0200 |
|---|---|---|
| committer | William Hubbs <williamh@gentoo.org> | 2023-06-12 15:22:46 -0500 |
| commit | 45e7aecd81e0ceee1871e65c7018314e69881bf5 (patch) | |
| tree | b9f0771454df1e12aa9bb85af7dc035eda95e3a7 /dev-cpp/cpp-httplib/cpp-httplib-0.12.5.ebuild | |
| parent | a1a4410d13895c661eabc182ba72a8526cb61175 (diff) | |
| download | gentoo-45e7aecd81e0ceee1871e65c7018314e69881bf5.tar.gz gentoo-45e7aecd81e0ceee1871e65c7018314e69881bf5.tar.bz2 gentoo-45e7aecd81e0ceee1871e65c7018314e69881bf5.zip | |
go-module.eclass: inline _go-module_gomod_encode()
The only call site of _go-module_gomod_encode() was using $() in a loop
over EGO_SUM. This caused bash to fork() for every loop iteration, which
significantly affected the time it takes to "source" an ebuild using
EGO_SUM.
For example, "pkg pkg source =sys-cluster/k3s-1.23.3_p1" previously took
2.4 seconds. Inlining _go-module_gomod_encode() reduces this to
236 milliseconds.
This also adds missing 'local' declarations for some variables.
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-cpp/cpp-httplib/cpp-httplib-0.12.5.ebuild')
0 files changed, 0 insertions, 0 deletions
