Le 26/09/2011 13:48, Nick Treleaven a écrit :
On 24/09/2011 11:59, Colomban Wendling wrote:
Le 22/09/2011 18:30, Nick Treleaven a écrit :
Hi, Whilst opening doc/geany.html I found it takes>5s on my machine to load. It's a big document though, still perhaps the HTML tag parser performance could be improved.
I think 5s is weird in the first place. I know geany.html is 6.5k-lines file, and that it may have say, 150 tags, but 5s seems way too much IMHO.
Maybe we should try to find out why this is so slow on your machine, there might show a Geany bug, performance problem or something else.
I'm reduced to using Windows. I guess the reason is the regex code that is really old which is used for Windows builds.
Maybe yeah, but I find it a little weird you see *so much* slowness...
For comparison, on my machine [1] parsing and updating the list takes less than 60ms for geany.html.
It might help to update it from CTags (we had a patch from Jiri Techet but it didn't look like it would build on Windows, i.e. wasn't from CTags).
Maybe we could use GRegex now we have a GLib recent enough?
Anyway tagamanger/regex.c looks like a few glibc source file concatenated with a 0xff separator, I'd then guess any POSIX RE implementation (e.g. today's glibc's one) would do, wouldn't it?
- What kind of machine did you run (basically, CPU's MHz)
Pentium 4, 1.9 GHz, 512 MB ram.
Not any kind of "slow" machine... Could anybody else try the same on another Windows machine, just to see if it is Windows-related or something? (Enrico, Matthew?)
- Had you many HTML files open, with many tags each?
- Had you many non-HTML files open?
Just that one file.
OK... with a fresh configdir?
Regards, Colomban
[1] OK, it is a little more powerful (i3 2.93GHz), but still