-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
extend path cache duration? #53
Comments
I've actually been thinking about this recently ... my new job has a bit of a different workflow that my last, and I've been noticing dirs age out of the datafile earlier than I expect. Pretty much all of the numbers about this were picked arbitrarily, and there's several possibilities for tweaking/improving behavior. I would welcome suggestions from anyone that wishes to experiment, and believes they've found more intuitive 'settings'. To that end, here's the stuff you can play around with:
When the rank on a directory goes below 1, it is dropped from the datafile. So we can lower that number to keep aged directories from being removed for a while longer. Some combination of tweaks to these should yield better results for you. Furthermore, it occurs to me that I don't mess with 'frecency' here, I only use it when weighting directories that are still in the datafile. It's possible that it would be a good idea to use that in aging calculation - but I can't really think of a way to use it that isn't arguably counterproductive. I don't want to make these things configurable, I prefer |
I often run into this issue, I would love to see the time they stay around raised. Is there a good reason to kill any directory you have visited more then say 5 times?
I pull EDIT: That being said I also like things that just work. Maybe the numbers just need to be tweaked. |
I often want to
z
to a path i was last in like 3 weeks ago. But they seem to be unavailable.. i imagine they are being evicted from the cache..I know this is one of the 2 hardest problems, but i'd like to see if we can cache evict smarter so my projects that i work on occasionally are still
z
-ableIn my particular care, most of my projects are in
~/Sites/
and i'mz
ing around them, so the heuristic could give items within my Sites folder a longer expire time..(But maybe I totally misundertand how it works, so apologies if so)
The text was updated successfully, but these errors were encountered: