Using fontspec (which requires exp3-code.tex) makes lualatex slow
up vote
0
down vote
favorite
I recently tried luatex (TeX Live on Mac) and found that if I use fontspec to load a font, it really slows down the compilation. My test document:
documentclass{article}
% usepackage{fontspec}
% setmainfont{ProximaNova}[
% Path=fonts/,
% UprightFont=*-Regular,
% ItalicFont=*-RegularIt,
% BoldFont=*-Bold,
% BoldItalicFont=*-BoldIt]
begin{document}
Hello World.
end{document}
If I keep the font section commented out, it takes 0.7 seconds to generate the PDF. If I uncomment the font section, it takes 2.7 seconds. That's almost 4x.
A huge chunk of this 2 sec increase seems to be processing expl3-code.tex
which someone else complained about also.
Can this file be pre-compiled or something else to make it load faster?
luatex fontspec
New contributor
add a comment |
up vote
0
down vote
favorite
I recently tried luatex (TeX Live on Mac) and found that if I use fontspec to load a font, it really slows down the compilation. My test document:
documentclass{article}
% usepackage{fontspec}
% setmainfont{ProximaNova}[
% Path=fonts/,
% UprightFont=*-Regular,
% ItalicFont=*-RegularIt,
% BoldFont=*-Bold,
% BoldItalicFont=*-BoldIt]
begin{document}
Hello World.
end{document}
If I keep the font section commented out, it takes 0.7 seconds to generate the PDF. If I uncomment the font section, it takes 2.7 seconds. That's almost 4x.
A huge chunk of this 2 sec increase seems to be processing expl3-code.tex
which someone else complained about also.
Can this file be pre-compiled or something else to make it load faster?
luatex fontspec
New contributor
As the question you link to notes,expl3
is quite large, but on most systems the load time is pretty trivial (certainly less than a second). Other than building stuff into the format file there's not much that can be done to load material faster.
– Joseph Wright♦
Nov 18 at 15:50
The complain about expl3 in the other question was a bug in miktex which has been resolved in the meantime. lualatex is slower than pdflatex - loading rather large fonts needs more time.
– Ulrike Fischer
Nov 18 at 16:02
@DavidCarlisle Withusepackage{expl3}
it takes 2.2 seconds, which is 80% of the time increase.
– Roxy
Nov 18 at 16:05
@Roxy Sure, but from a very low base. With LuaTeX, we have a load of Unicode data needed that's not in pdfTeX (where the load time is really low). It's very hard to cut that down, as I said unless we went down the route of buildingexpl3
directly into the LaTeX kernel. That has been discussed, but there are issues with doing that globally ...
– Joseph Wright♦
Nov 18 at 16:07
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I recently tried luatex (TeX Live on Mac) and found that if I use fontspec to load a font, it really slows down the compilation. My test document:
documentclass{article}
% usepackage{fontspec}
% setmainfont{ProximaNova}[
% Path=fonts/,
% UprightFont=*-Regular,
% ItalicFont=*-RegularIt,
% BoldFont=*-Bold,
% BoldItalicFont=*-BoldIt]
begin{document}
Hello World.
end{document}
If I keep the font section commented out, it takes 0.7 seconds to generate the PDF. If I uncomment the font section, it takes 2.7 seconds. That's almost 4x.
A huge chunk of this 2 sec increase seems to be processing expl3-code.tex
which someone else complained about also.
Can this file be pre-compiled or something else to make it load faster?
luatex fontspec
New contributor
I recently tried luatex (TeX Live on Mac) and found that if I use fontspec to load a font, it really slows down the compilation. My test document:
documentclass{article}
% usepackage{fontspec}
% setmainfont{ProximaNova}[
% Path=fonts/,
% UprightFont=*-Regular,
% ItalicFont=*-RegularIt,
% BoldFont=*-Bold,
% BoldItalicFont=*-BoldIt]
begin{document}
Hello World.
end{document}
If I keep the font section commented out, it takes 0.7 seconds to generate the PDF. If I uncomment the font section, it takes 2.7 seconds. That's almost 4x.
A huge chunk of this 2 sec increase seems to be processing expl3-code.tex
which someone else complained about also.
Can this file be pre-compiled or something else to make it load faster?
luatex fontspec
luatex fontspec
New contributor
New contributor
New contributor
asked Nov 18 at 15:43
Roxy
2353
2353
New contributor
New contributor
As the question you link to notes,expl3
is quite large, but on most systems the load time is pretty trivial (certainly less than a second). Other than building stuff into the format file there's not much that can be done to load material faster.
– Joseph Wright♦
Nov 18 at 15:50
The complain about expl3 in the other question was a bug in miktex which has been resolved in the meantime. lualatex is slower than pdflatex - loading rather large fonts needs more time.
– Ulrike Fischer
Nov 18 at 16:02
@DavidCarlisle Withusepackage{expl3}
it takes 2.2 seconds, which is 80% of the time increase.
– Roxy
Nov 18 at 16:05
@Roxy Sure, but from a very low base. With LuaTeX, we have a load of Unicode data needed that's not in pdfTeX (where the load time is really low). It's very hard to cut that down, as I said unless we went down the route of buildingexpl3
directly into the LaTeX kernel. That has been discussed, but there are issues with doing that globally ...
– Joseph Wright♦
Nov 18 at 16:07
add a comment |
As the question you link to notes,expl3
is quite large, but on most systems the load time is pretty trivial (certainly less than a second). Other than building stuff into the format file there's not much that can be done to load material faster.
– Joseph Wright♦
Nov 18 at 15:50
The complain about expl3 in the other question was a bug in miktex which has been resolved in the meantime. lualatex is slower than pdflatex - loading rather large fonts needs more time.
– Ulrike Fischer
Nov 18 at 16:02
@DavidCarlisle Withusepackage{expl3}
it takes 2.2 seconds, which is 80% of the time increase.
– Roxy
Nov 18 at 16:05
@Roxy Sure, but from a very low base. With LuaTeX, we have a load of Unicode data needed that's not in pdfTeX (where the load time is really low). It's very hard to cut that down, as I said unless we went down the route of buildingexpl3
directly into the LaTeX kernel. That has been discussed, but there are issues with doing that globally ...
– Joseph Wright♦
Nov 18 at 16:07
As the question you link to notes,
expl3
is quite large, but on most systems the load time is pretty trivial (certainly less than a second). Other than building stuff into the format file there's not much that can be done to load material faster.– Joseph Wright♦
Nov 18 at 15:50
As the question you link to notes,
expl3
is quite large, but on most systems the load time is pretty trivial (certainly less than a second). Other than building stuff into the format file there's not much that can be done to load material faster.– Joseph Wright♦
Nov 18 at 15:50
The complain about expl3 in the other question was a bug in miktex which has been resolved in the meantime. lualatex is slower than pdflatex - loading rather large fonts needs more time.
– Ulrike Fischer
Nov 18 at 16:02
The complain about expl3 in the other question was a bug in miktex which has been resolved in the meantime. lualatex is slower than pdflatex - loading rather large fonts needs more time.
– Ulrike Fischer
Nov 18 at 16:02
@DavidCarlisle With
usepackage{expl3}
it takes 2.2 seconds, which is 80% of the time increase.– Roxy
Nov 18 at 16:05
@DavidCarlisle With
usepackage{expl3}
it takes 2.2 seconds, which is 80% of the time increase.– Roxy
Nov 18 at 16:05
@Roxy Sure, but from a very low base. With LuaTeX, we have a load of Unicode data needed that's not in pdfTeX (where the load time is really low). It's very hard to cut that down, as I said unless we went down the route of building
expl3
directly into the LaTeX kernel. That has been discussed, but there are issues with doing that globally ...– Joseph Wright♦
Nov 18 at 16:07
@Roxy Sure, but from a very low base. With LuaTeX, we have a load of Unicode data needed that's not in pdfTeX (where the load time is really low). It's very hard to cut that down, as I said unless we went down the route of building
expl3
directly into the LaTeX kernel. That has been discussed, but there are issues with doing that globally ...– Joseph Wright♦
Nov 18 at 16:07
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Roxy is a new contributor. Be nice, and check out our Code of Conduct.
Roxy is a new contributor. Be nice, and check out our Code of Conduct.
Roxy is a new contributor. Be nice, and check out our Code of Conduct.
Roxy is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460609%2fusing-fontspec-which-requires-exp3-code-tex-makes-lualatex-slow%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As the question you link to notes,
expl3
is quite large, but on most systems the load time is pretty trivial (certainly less than a second). Other than building stuff into the format file there's not much that can be done to load material faster.– Joseph Wright♦
Nov 18 at 15:50
The complain about expl3 in the other question was a bug in miktex which has been resolved in the meantime. lualatex is slower than pdflatex - loading rather large fonts needs more time.
– Ulrike Fischer
Nov 18 at 16:02
@DavidCarlisle With
usepackage{expl3}
it takes 2.2 seconds, which is 80% of the time increase.– Roxy
Nov 18 at 16:05
@Roxy Sure, but from a very low base. With LuaTeX, we have a load of Unicode data needed that's not in pdfTeX (where the load time is really low). It's very hard to cut that down, as I said unless we went down the route of building
expl3
directly into the LaTeX kernel. That has been discussed, but there are issues with doing that globally ...– Joseph Wright♦
Nov 18 at 16:07