You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a fair amount of code in Syntax Tree that doesn't get executed unless you're treating it like a library. This includes everything under the lib/yarv directory, the parser translation, and a lot of the visitors.
We should be more judicious with when we load code. Because of the dual nature of this project (CLI and library) the CLI suffers worse boot times for every line of code added to the library that doesn't immediately impact formatting.
A combination of autoloading and/or nesting requires more deeply into the files that need them should do the trick, but profiling and experimenting will be required. The benchmark we should be improving is
$ stree format -e 0
That should be as fast as we can make it.
The text was updated successfully, but these errors were encountered:
There is a fair amount of code in Syntax Tree that doesn't get executed unless you're treating it like a library. This includes everything under the
lib/yarv
directory, the parser translation, and a lot of the visitors.We should be more judicious with when we load code. Because of the dual nature of this project (CLI and library) the CLI suffers worse boot times for every line of code added to the library that doesn't immediately impact formatting.
A combination of autoloading and/or nesting requires more deeply into the files that need them should do the trick, but profiling and experimenting will be required. The benchmark we should be improving is
That should be as fast as we can make it.
The text was updated successfully, but these errors were encountered: