punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

Add define delayed function macro. #63

Closed justbur closed 8 years ago

justbur commented 8 years ago

Useful for adding more delayed functions and having them behave consistently.

punassuming commented 8 years ago

Thanks, any ideas of fxn besides ranger-setup-preview that would also benefit being delayed?

justbur commented 8 years ago

Not sure. I was just looking for lag and seeing if there was a function that could be delayed. setup-preview and show-details seemed to work well because they were called from next-line and prev-line. Any other commands that could be called quickly?

justbur commented 8 years ago

I'm getting much better performance just from these two, so you could probably leave it for now

punassuming commented 8 years ago

I did a benchmark with elp active for ranger and don't see much else that is taking a lot of time. Will try more iterations and see if I can find anything.

justbur commented 8 years ago

Maybe you could get away with not loading the files in fundamental mode if you delayed the preview function like this?

punassuming commented 8 years ago

Possibly. we should still keep the option, but we can revert the default.