manuels / texlive.js

Compiling LaTeX (TeX live) in your browser
http://manuels.github.com/texlive.js/
GNU General Public License v2.0
1.25k stars 140 forks source link

Performance #61

Closed MariusHerget closed 4 years ago

MariusHerget commented 5 years ago

The implementation is really nice but performance wise it's just bad. Loading all package files synchronous takes about 100ms per file which adds up quite fast. My local compiling takes about 4 seconds. Texlive.js takes 80 seconds.

Is there any solution to preloading necessary files or loading all files asynchronously?

In my usecase I know 100% of the packages pre compiling of the tex file.

Maybe @manuels or @fzimmermann89 ?

manuels commented 5 years ago

Sure, you could use the FS_createDataFile command (see pdftex.js)

MariusHerget commented 5 years ago

@manuels do you have a specific installation guide? Unfortunately, the documentation of pdftex.js (ctan) is down.

btw: great work on texlive.js!