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

Autoloading lexers #217

Closed
onemanstartup opened this issue Jan 6, 2015 · 5 comments
Closed

Autoloading lexers #217

onemanstartup opened this issue Jan 6, 2015 · 5 comments
Labels
stale-issue There has been no activity for a year.

Comments

@onemanstartup
Copy link

Memory with loaded lexers ~> 3Mb
Memory without ~ 0.5Mb

It is not much, but gem by gem..
It is many ways to do it, but it possible. Rarely people use all lexers.

@jneen
Copy link
Member

jneen commented Jan 6, 2015

Hm, yeah, this is becoming a priority as the number of lexers increases

@onemanstartup
Copy link
Author

Just found library for autoload, it may helps. https://github.com/njonsson/autoloaded

@jneen
Copy link
Member

jneen commented Jan 9, 2015

It's a bit more complicated than that, I'm afraid. Lexers aren't just accessed as constants - in fact, more often they're accessed by tag or alias, as in Lexer.find('rb'). So there's gonna be a bit of shuffling around of data to do, and that's gonna take a bit of design work.

@stale
Copy link

stale bot commented Jun 19, 2019

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days.

If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.

@stale stale bot added the stale-issue There has been no activity for a year. label Jun 19, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Jun 19, 2019

This is now being discussed in #1147.

@pyrmont pyrmont closed this as completed Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale-issue There has been no activity for a year.
Projects
None yet
Development

No branches or pull requests

3 participants