eromatiya / rofi-spotlight

Spotlight-like Rofi
MIT License
201 stars 7 forks source link

Speed up find_query printing #10

Closed AethanFoot closed 4 years ago

AethanFoot commented 4 years ago

Replaced the while loop with awk to print out the stream, this was about 4x faster while using fd . in my home directory (which i think prints out all the files in the home tree). Also made it print ~/ instead of the whole home path to save space.

AethanFoot commented 4 years ago

When this is ok to merge I will do another pull request that uses fd in navigate_to instead of the while loops, i found this to be more than twice a fast to output in my home directory. This also may allow for more complex sorting and ordering configuration.

eromatiya commented 4 years ago

Thanks for this!

When this is ok to merge I will do another pull request that uses fd in navigate_to instead of the while loops, i found this to be more than twice a fast to output in my home directory. This also may allow for more complex sorting and ordering configuration.

Please do so!

Merging this now