Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library loading times are quite long #2

Open
jdugge opened this issue Sep 2, 2014 · 1 comment
Open

Library loading times are quite long #2

jdugge opened this issue Sep 2, 2014 · 1 comment

Comments

@jdugge
Copy link

jdugge commented Sep 2, 2014

Using this library in an otherwise empty document increases the compilation time from ~1 s to ~4 s on my computer, which is understandable from the large number of lists, but also a bit painful, and its bound to get worse if my feature request #1 is implemented ;-).

Maybe the library could be split up into sublibraries, or the list definitions could be provided in separate files and the colormap and cycle list name keys patched to only load the definitions when required.

\documentclass{article}
\usepackage{pgfplots}
\usepgfplotslibrary{colorbrewer} % ~4 s to compile with this included, ~1 s to compile with this  commented out

\begin{document}
\end{document}
@vtraag
Copy link
Owner

vtraag commented Sep 4, 2014

Yes, that would indeed be good. Unfortunately, I have no idea how to load the definitions only when they are being used, so if you have a suggestion for doing so, that would be more than welcome! Otherwise, I could indeed make different files for all the different colorschemes for example, but I considerd that to be a bit of overkill. Perhaps at least splitting in the different types of colorschemes (for TikZ and different ones for the different PGF possibilities) might be an indea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants