[Qt-creator] [patch] C++ syntax highlighting and the (unused) 'style' format.
tbp
tbptbp at gmail.com
Fri Apr 2 21:52:02 CEST 2010
On Fri, Apr 2, 2010 at 8:18 PM, Andre Poenitz
<andre.poenitz at mathematik.tu-chemnitz.de> wrote:
> Are you sure introducing the loop does not impact performance?
> This is in the critical path...
It's bound almost exactly like the original code (in char/string
comparisons and other operations) with a much smaller footprint (fewer
branches, less i-cache trashing); but i haven't benchmarked it.
If there's an additional cost in my patch it lies in the keyword and
identifer path where i need to do some matching.
I didn't want to over-engineer my initial submission, but as a
refinement some kind of hashing could be used; and those ugly string
pointers removed (that would require some preprocessing trickery).
More information about the Qt-creator-old
mailing list