Double the speed of main jit-lock highlighting fn (see commit msg for benchmarks); eliminate bottleneck in large files.
* Benchmarks: These benchmarks are after replacing parse-partial-sexp with syntax-ppss and using defsubst in place of defun in a few more critical paths. *** Ordinary section of code: (benchmark-run 10 (rainbow-delimiters-propertize-region 16800 19000)) 0.0403 0.0355 0.0315 0.0419 0.0319 0.0376 Before this round of optimizations (syntax-ppss+defsubst) this benchmark took ~0.068 seconds. (Improvement: ~2x) *** Segment where a bottleneck was hit earlier: (benchmark-run 10 (rainbow-delimiters-propertize-region 23800 26000)) 0.0842 0.0821 0.0905 0.0843 0.0784 0.0822 Before this round of optimizations (syntax-ppss+defsubst) this benchmark took ~3.2 seconds. (Improvement: ~40x)master
parent
1d71bda98c
commit
164b55be80
1 changed files with 8 additions and 4 deletions
Loading…
Reference in new issue