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

Add simple caching in fzf#vim#_lines #137

Closed
wants to merge 1 commit into from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Apr 26, 2016

This improves the speed when calling it a second time (and buffers have
not changed). Not sure if it is worth the potential memory consumption.

If this is feasible, the cache could be invalidated through some
autocommand maybe?!

This improves the speed when calling it a second time (and buffers have
not changed).  Not sure if it is worth the potential memory consumption.

If this is feasible, the cache could be invalidated through some
autocommand maybe?!
@blueyed
Copy link
Contributor Author

blueyed commented Apr 27, 2016

I think it's not really worth it, and would have to keep e.g. b:changedtick into account, too.

@blueyed blueyed closed this Apr 27, 2016
@blueyed blueyed deleted the add-lines-cache branch April 27, 2016 11:00
@junegunn
Copy link
Owner

Right, let's not enter the world of cache invalidation.

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

Successfully merging this pull request may close these issues.

None yet

2 participants