[tlu] new beta

Bruno Voisin bvoisin at icloud.com
Tue Feb 8 23:22:17 CET 2022


> On 8 Feb 2022, at 21:25, Adam R. Maxwell <amaxwell at mac.com> wrote:
> 
> It looks like the new interpreter shaves about half a second off of parsing time for the full tlpdb. Of course, my comments in the code show a time of 1.7 seconds for TL 2016 (when I originally wrote the python-based parser). Ouch.
> 
> 
> $ time ~/build/tlutility/parse_tlpdb.py /usr/local/texlive/2021/tlpkg/texlive.tlpdb -o /tmp/a.plist -f plist
> 
> real 0m2.991s
> 
> user 0m2.847s
> 
> sys 0m0.127s
> 
> 
> time ~/build/tlutility/relocatable-python/Python.framework/Versions/3.9/bin/python3.9 ~/build/tlutility/parse_tlpdb.py /usr/local/texlive/2021/tlpkg/texlive.tlpdb -o /tmp/a.plist -f plist
> real 0m2.400s
> 
> user 0m2.266s
> 
> sys 0m0.102s


Is this on Intel?

Here's what I get on M1 chip (the basic sort on MacBook Pro 13", not even Pro or Max) and macOS 12.3 Beta. Times are much shorter.

I tried several invocations to get output formatted similar to yours, finally realizing time is a shell command (with zsh the default on Monterey, while you seem to be running bash given your "$" prompt), and /usr/bin/time is a separate utility.

texlive.tlpdb is ~ 17 MB.

% time /Applications/TeX/TeX\ Live\ Utility.app/Contents/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Applications/TeX/TeX\ Live\ Utility.app/Contents/MacOS/parse_tlpdb.py /usr/local/texlive/2021/tlpkg/texlive.tlpdb -o /tmp/a.plist -f plist 
 /Applications/TeX/TeX\ Live\ Utility.app/Contents/MacOS/parse_tlpdb.py  -o    0.79s user 0.04s system 89% cpu 0.934 total

% /usr/bin/time -p /Applications/TeX/TeX\ Live\ Utility.app/Contents/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Applications/TeX/TeX\ Live\ Utility.app/Contents/MacOS/parse_tlpdb.py /usr/local/texlive/2021/tlpkg/texlive.tlpdb -o /tmp/a.plist -f plist   
real 0.84
user 0.80
sys 0.03

% bash -c "time /Applications/TeX/TeX\ Live\ Utility.app/Contents/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Applications/TeX/TeX\ Live\ Utility.app/Contents/MacOS/parse_tlpdb.py /usr/local/texlive/2021/tlpkg/texlive.tlpdb -o /tmp/a.plist -f plist"

real	0m0.870s
user	0m0.795s
sys	0m0.036s

Bruno




More information about the tlu mailing list.