Skip to content

tl.loader() performance implications? #513

Answered by euclidianAce
mrjones2014 asked this question in Q&A
Discussion options

You must be logged in to vote

tl.loader() injects a 'searcher' function as described here in the Lua manual to search for .tl files when using require and compiles them on the fly (without type checking them). As far as performance goes, I personally wouldn't recommend it for Neovim as it can increase your start up time quite a bit (obviously depending on how much code you are compiling).

But as far as not wanting to commit the generated Lua, you have a couple options:

  • many Neovim plugin managers provide a post-install hook that you could use to compile the plugin. This of course requires the user to have tl or cyan installed (which isn't a problem for packer, not sure if other managers have luarocks deps yet).
  • you c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mrjones2014
Comment options

Answer selected by mrjones2014
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants