[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24389: [PATCH] Support completion of classes and IDs in CSS mode
From: |
Nicolas Petton |
Subject: |
bug#24389: [PATCH] Support completion of classes and IDs in CSS mode |
Date: |
Sat, 24 Sep 2016 17:00:57 +0200 |
Simen Heggestøyl <simenheg@gmail.com> 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
signature.asc
Description: PGP signature