Summary: | dev-texlive/texlive-fontsextra spends a lot of time in src_unpack() | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergei Trofimovich (RETIRED) <slyfox> |
Component: | Current packages | Assignee: | TeX project <tex> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mattst88, njsg, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sergei Trofimovich (RETIRED)
2019-06-29 10:01:51 UTC
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97812dcc9ddb1e043d8a67216692b214d62099a7 commit 97812dcc9ddb1e043d8a67216692b214d62099a7 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-04-14 13:14:42 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-04-14 13:16:52 +0000 texlive-module.eclass: Optimize src_unpack() This goes a bit further than slyfox's work. On my machine, it reduces the post-unpack time from ~44m to ~13m. Bug: https://bugs.gentoo.org/688922 Acked-by: Mikle Kolyada <zlogene@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org> eclass/texlive-module.eclass | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) I think we can easily get to under a minute here: http://trofi.github.io/posts/215-perf-and-dwarf-and-fork.html > Status: CONFIRMED → RESOLVED
> Resolution: --- → FIXED
10+ minutes is way above expected. I would not call it "FIXED".
commit 918b21dea9fc7e714c08dcedc24d0daf6b52ccdb Author: Ulrich Müller <ulm@gentoo.org> Date: Fri Jun 2 09:44:21 2023 +0200 texlive-module.eclass: Reduce number of executed external commands For texlive-latexextra-2021[doc], the number of "mv" commands is reduced from 12718 to 3130. Speedup is also by a factor of about 4, which saves another 4 seconds. Signed-off-by: Ulrich Müller <ulm@gentoo.org> commit 6ee282f0645dcfccf1836b9cc7ae55556629eb8b Author: Ulrich Müller <ulm@gentoo.org> Date: Fri Jun 2 01:09:59 2023 +0200 texlive-module.eclass: Speed up SRC_URI calculation For texlive-latexextra-2021, SRC_URI calculation ran for 37 seconds here. Reduced it to 0.025 seconds (i.e. more than a factor 1000) by using bash arrays and parameter expansion instead of nested loops. Reported-by: Tim Harder <radhermit@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org> (In reply to Sergei Trofimovich (RETIRED) from comment #2) > I think we can easily get to under a minute here: > http://trofi.github.io/posts/215-perf-and-dwarf-and-fork.html I brought up the posix_spawn suggestion today at https://lists.gnu.org/archive/html/bug-bash/2023-06/msg00030.html. |