Simen Heggestøyl writes: > OK, I changed it to use the buffer's tick counter instead. I also > changed `seq-uniq' to `delete-dups', which resulted in a massive > speedup. Some benchmarks using the same test files as before follow. > > * With `seq-uniq': > (benchmark 10 '(css--foreign-completions 'css-class-list-function)) > "Elapsed time: 4.198944s (0.911449s in 60 GCs)" > > * With `delete-dups': > (benchmark 10 '(css--foreign-completions 'css-class-list-function)) > "Elapsed time: 0.282890s (0.188205s in 10 GCs)" > > As a side note, maybe a hashing strategy like the one `delete-dups' > uses would be good for `seq-uniq' too? Yes, seq-uniq could be optimized. I'll look into it. Cheers, Nico