Re: [Geany-devel] editing big files can be too slow with tag reparsing - HTML
On 27/09/2011 01:53, Colomban Wendling wrote: Le 27/09/2011 01:44, Lex Trotman a écrit : [...] Pentium 4, 1.9 GHz, 512 MB ram. I'm no windows expert, but isn't 512mb considered kinda marginal, 1gb better. Whats your general windows performance like? I doubt that, even on Windows, it would so drastically reduce the performances. Was your RAM completely full so it needed to swap? Windows performance is fine, I run Firefox with tons of tabs easily. I have Windows XP BTW, so 512MB is not unusually low. ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] editing big files can be too slow with tag reparsing - HTML
On 26/09/2011 23:00, Colomban Wendling wrote: Le 26/09/2011 13:48, Nick Treleaven a écrit : 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. Just to be sure, are you seeing the 'built-in regex' debug message: 12:42:07: (null) INFO : GTK 2.22.0, GLib 2.26.0, built-in regex 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? That's probably what Jiri did, but I noticed CTags had some modifications to build on Windows. Perhaps glibc would work, but I think taking it from ctags is safer. I don't know if GRegex would work, CTags parsers may use non-POSIX features - are \w \s part of POSIX? OK... with a fresh configdir? Just tried that, same problem. Task manager showed I still had about 230MB memory free whilst having the problem - the freeze caused 100% CPU as expected. ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] editing big files can be too slow with tag reparsing
On 26/09/2011 22:38, Colomban Wendling wrote: So, I'm soliciting your impressions, opinions, remarks, etc. Also, is this whole thing important enough to break string freeze less than a week before release? (read: to have some strings untranslated) Well, it's not just untranslated strings - it's best not to introduce new features close to a release in case we introduce bugs. ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
[Geany-devel] Hi Guys
Hi Guys I'm a HUGE FAN GeAny :D (Converting my peers one at time ) I want start to contribute got a few features/plugins in mind :P My name is Jacques du Rand 29 from South Africa Quick Question: -I get a copy of source via svn compiles fine -Builds fine -Run it as geany-svn-snapshotsrc/geany -c ~/.config/geanydev THEN : ERROR1: I can't see any open files in File Open Dialog I can see files in Project - Open dailog ? ERROR2:Plugins list is empty ? Any hints or ideas ? Best Regards Jacques du Rand 1) ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] Hi Guys
Hi, On 27/09/2011 16:44, Jacques du Rand wrote: Quick Question: -I get a copy of source via svn compiles fine -Builds fine -Run it asgeany-svn-snapshotsrc/geany -c ~/.config/geanydev THEN : ERROR1: I can't see any open files in File Open Dialog I can see files in Project - Open dailog ? Could be related to a file filter bug - do any filters work? Are you using the latest SVN? (Try 'svn info' to find out). ERROR2:Plugins list is empty ? Probably you haven't installed Geany? ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] editing big files can be too slow with tag reparsing
On 26/09/2011 22:38, Colomban Wendling wrote: Le 24/09/2011 13:32, Lex Trotman a écrit : [...] How about automagically disabling auto-reparsing per-file if it takes too long (1s?) at runtime? Without needing to change the setting that is. I disagree, it is a bad idea to turn off a setting that changes the behavior. The user is likely to be confused by the unexpected change in behavior (new symbols no longer in autocompletes, new types not being highlighted etc). Having it automagically turn off is bad. At most, pop up a dialog suggesting turning it off and noting where, but only ever once per session. Hum, right, automagic might not be good, asking the user is always better. I've got 2 WIP patches, though they might not be appropriate to commit before release since they add strings... anyway, here they are: 0001-Per-document-real-time-symbols-setting.patch: Adds a per-document setting for real-time updates and a menu item in the Document menu. There is still a FIXME in it, feel free to give ideas :) Not sure about the use case: 1. Very big files x MB - I don't think we need to support that case specially, Geany is a programmer's editor. The user can just open as filetype none if they only want basic editing. 2. Slow tag parsers - a per-filetype setting might be more practical than per-document? I see it might be useful but I'm not convinced it's worth it. 0002-Tell-the-user-if-real-time-reparsing-is-slow-and-let.patch: This one adds the check for the updating duration and asks the user. It is WIP, and I'm not really convinced by the dialog, as you can read in a TODO. Apart that, it seems to work pretty OK. I think this is overkill - who would want editing to have ~0.2s delays? Auto-disable should be fine with a status bar message. ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] Hi Guys
On 09/27/2011 09:09 AM, Nick Treleaven wrote: Hi, On 27/09/2011 16:44, Jacques du Rand wrote: Quick Question: -I get a copy of source via svn compiles fine -Builds fine -Run it asgeany-svn-snapshotsrc/geany -c ~/.config/geanydev I've had this problem before several times. It's most likely related to you not having installed Geany but it thinks it's going to be installed somewhere (/usr/local by default). Here's what I would do: Assuming you will install it into `~/geanydev` $ cd /where/geany/source/is $ ./configure --prefix=/home/your-username/geanydev $ make $ make install $ ~/geanydev/bin/geany -c ~/.config/geanydev You'll have to use the same prefix with any plugins you install, or you can set the Extra plugin path in Preferences-General-Startup to point to where you're plugins are. Cheers, Matthew Brush ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel