ctrlp-cmatcher icon indicating copy to clipboard operation
ctrlp-cmatcher copied to clipboard

Performance improvements

Open telemenar opened this issue 10 years ago • 1 comments

This makes a number of performance improvements avoiding largely copying and additional comparison.

The two most significant pieces are:

  • re-arranging to avoid needing to allocate memory for splitslash
  • switching to an enum for the mode

telemenar avatar Aug 10 '15 20:08 telemenar

@telemenar This is good stuff, thanks! I forked your repo to https://github.com/ptzz/ctrlp-cmatcher and optimised further. Managed to cut the processing time by ~80% for large input. The delay is not really noticeable now for 100k files on a 2012 Macbook.

The trick was to use partial sort and only sort the items visible on screen.

ptzz avatar Dec 09 '17 22:12 ptzz