Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-07 Thread Colomban Wendling
Closed #2649 via b08ae0fe65c0942dca20281d6841dc83406d8b5e. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#event-4300712766

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-06 Thread Colomban Wendling
@L--U--P--U--S @andy5995 Thanks for testing! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-774423220

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-05 Thread Andy Alt
Also for me on Debian 10 ``` 16:00:31: Geany INFO: Geany 1.38 (git >= f600937d), en_US.utf8 16:00:31: Geany INFO: GTK 3.24.5, GLib 2.58.3 16:00:31: Geany INFO: OS: Linux 16:00:31: Geany INFO: System data dir: /home/andy/.local/share/geany 16:00:31:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-05 Thread Thomas Wolf
> please give the branch [`startup-speed`](/geany/geany/tree/startup-speed) a > spin Works for me (Win10). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-774309595

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-04 Thread elextr
See my comments on the branch regarding the [ahem] "code complexity" :) but the basic idea looks good. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-773682400

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-04 Thread elextr
Hmmm, so even if we ask for the height of line 1 Scintilla lays out the whole file, well, I suppose it is necessary since Scintilla styles can have differing font sizes. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-02-04 Thread Colomban Wendling
OK, took me long enough to work on that one, but please give the branch [`startup-speed`](/geany/geany/tree/startup-speed) a spin. My results, which are the mean average time (measuring `document_open_file_full()`) for opening Geany's `src/*.[ch]` (96 C files), best out of 3 runs: 1.36 (A) |

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-27 Thread Andy Alt
Hi @gsi-nestor, and welcome to the Geany project. Thank you for reporting your OS and specs. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-768042403

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-27 Thread gsi-nestor
I'll be patient, thanks. El mar., 26 ene. 2021 10:49 p.m., elextr escribió: > @gsi-nestor its only been just over a > week since last post, be patient or provide a PR. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-26 Thread elextr
@gsi-nestor its only been just over a week since last post, be patient or provide a PR. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-768002782

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-26 Thread gsi-nestor
Hi, any progress on this issue? Same behavior in Ubuntu 20.04, just compiled Geany 1.37.1 and it is way slower than 1.36. This is an up-to-date system, 16GB RAM, SSD, 4th gen i3 processor. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-18 Thread elextr
@L--U--P--U--S it pretty much points to the same thing, the slowdowns happen when you turn on auto margin things. Line number margins are set by Geany to fit the line numbers in a Scintilla callback IIRC, so its after Scintilla has loaded and done its thing, which may have included laying

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-18 Thread Thomas Wolf
Because display and margin stuff was mentioned, I did more testing with the view options … with an interesting outcome, I think: Usually, I have line endings turned off, everything else on. - [x] Show markers margin - [x] Show Line Numbers - [x] Show spaces - [ ] Show line endings - [x] Show

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-18 Thread Andy Alt
> Ok, I can get the slowdown if I make a project with _line wrap on all files_. > For me, it made no difference. I have line wrapping disabled (0;1;0). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-16 Thread elextr
Ok, I can get the slowdown if I make a project with _line wrap on all files_. That definitely suggests that its a display issue triggered by the margin width thing. Possibly hard to fix if keeping the auto margin width, since the file needs to be loaded, which does one layout pass, to get line

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-16 Thread Colomban Wendling
OK, thanks to the @andy5995's bisect we now know what's going on, and I see at least on one of my machines that undoing most of what that commit does roughly halves my loading times as well (I guess I never really noticed because I'm used for my usual huge Geany session to be slow enough that I

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-16 Thread Thomas Wolf
Because it is mentioned in the very first post, I suggest to add Georg Klingenberg's report to the table: Reported | OS | Version | GTK | slower -- | -- | -- | -- | -- [msg02989](https://www.mail-archive.com/users@lists.geany.org/msg02989.html) | Windows| 1.36 | ??? | no

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-15 Thread elextr
@L--U--P--U--S thanks for doing that, so at least your problem doesn't seem to be GTK major version dependent either. So summarising the data: | Reported | OS | Version | GTK | slower | |-|--|||--| | https://github.com/geany/geany-osx/issues/20 | OSX

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-15 Thread Thomas Wolf
> So you would have to build it yourself at the moment. Built a gtk3 version myself using https://download.geany.org/geany-1.37.1.tar.gz, https://wiki.geany.org/howtos/win32/msys2 (with few adjustments to fix configure errors) and my home machine. Outcome: **absolutely no difference** :(

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-13 Thread elextr
@L--U--P--U--S ummm, ahh, Windows, I missed that, yeah well the windows downloads are gtk2 up to 1.37, the intention is to switch to gtk3 before 1.38 release, but it depends on peoples time availability which is unknown in these "interesting" times. So you would have to build it yourself at

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-13 Thread Thomas Wolf
> Can you time some of the differences with a stopwatch? ### Procedure 1. randomly opened 15 files (ranging from one to some hundreds of lines in size) and save those files as project 2. closed Geany 3. opened Geany (empty editor/file) 4. opened project while looking on stopwatch Repeated steps

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-13 Thread Thomas Wolf
> could you please do comparisons using versions built with gtk3. As 1.37 is > the last release that will officially support gtk2, any issues it causes are > likely not going to be fixed. Are there windows installers with gtk3 available for download or do I have do compile it myself following

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-13 Thread Andy Alt
I was curious and built pango from git, installed it, rebuilt geany.. appears to be linked properly, but I still get the slowdown ``` $ ldd `which geany` linux-vdso.so.1 (0x7fff31b61000) libgeany.so.0 => /home/andy/.local/lib/libgeany.so.0 (0x7fcae186a000)

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread elextr
Just to note the profiles @andy5995 posted above show most time being spent in Pango. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-759134858

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread elextr
As discussed on IRC https://github.com/geany/geany/commit/e42a963d6b4f1b2ef2063e59fc4139a250dfe709 may cause Scintilla to re-layout stuff, but maybe Pango caching is improving it, @andy5995 is on Pango 1.42.4 and I'm on Pango 1.44.7 -- You are receiving this because you are subscribed to

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread Andy Alt
I've narrowed down the specific commit where this slowdown starts. https://github.com/geany/geany/commit/e42a963d6b4f1b2ef2063e59fc4139a250dfe709 Which is one commit before the release of 1.37.0 -- You are receiving this because you are subscribed to this thread. Reply to this email directly

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread Andy Alt
``` 18:28:27: Geany INFO: Geany 1.36, en_US.utf8 18:28:27: Geany INFO: GTK 3.24.5, GLib 2.58.3 18:28:27: Geany INFO: System data dir: /home/andy/.local/share/geany 18:28:27: Geany INFO: User config dir: /home/andy/.config/geany 18:28:28: Geany INFO

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread elextr
I can't measure any material difference (the difference is within the error caused by my reaction time) between ``` 08:56:28: Geany INFO: Geany 1.37 (git >= 915cf6e8), en_AU.UTF-8 08:56:28: Geany INFO: GTK 3.24.20, GLib 2.64.3 08:56:28: Geany INFO: OS: Linux

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread elextr
@L--U--P--U--S Thanks for the work, could you please do comparisons using versions built with gtk3. As 1.37 is the last release that will officially support gtk2, any issues it causes are likely not going to be fixed. @andy5995 your 1.37 debug messages shows its gtk3, can you post your 1.36

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread Thomas Wolf
Sorry, my mistake. 1.36 is fast, both in the portable and the non-portable version. Don't know what happened that night … I updated the previous post. Now my observations are consistent with @andy5995 : All versions are fast versions until and including 1.36. Slowdown starts with 1.37 and goes

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread Andy Alt
@L--U--P--U--S Thanks for the extra info. Can you time some of the differences with a stopwatch? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2649#issuecomment-758864738

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-12 Thread Thomas Wolf
Having the same issue on Windows 10. Did some testing with different Geany versions, different install and file locations and two different machines: ### Geany versions - 1.37.1 --> slow - 1.37 --> slow - 1.36 --> slow - 1.36 **portable** --> fast - 1.35 --> fast ``` 22:28:45: Geany INFO

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-10 Thread elextr
> The difference for loading 161 files is 13 seconds vs 5. The 13 secs is 81mS per file average, not tragic, but certainly slower than before. Most likely I'd say is a change in Scintilla that does more work each load. At one stage Geany used to move the carat from the start of the newly

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-10 Thread Andy Alt
``` *-disk:0 description: ATA Disk product: ST1000DX002-2DV1 physical id: 0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: CC41 serial: Z4YG898K size:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-09 Thread Andy Alt
These are the files included in the zip file above (converted to png). ![geany_1 36_pprof26182 0](https://user-images.githubusercontent.com/16764864/104113922-2f908480-52c4-11eb-924c-f06de5f053d1.png) ![geany_1 37 1_pprof24873

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2021-01-09 Thread Andy Alt
I'm having this issue on GNU/Debian Linux 10. I've been experiencing a slow-down when opening projects ever since I rebuilt Geany a couple weeks ago. I was using the git version. I checked out 1.37.1 and rebuilt, then 1.37.0, and things didn't go back to normal until I checked out 1.36 and

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-14 Thread fyah
> Maybe try simply deactivating the feature (files.save_config_on_file_change > various pref) and see if it helps? I did the test and did not notice any improvement in startup speed when disabling the option -- You are receiving this because you are subscribed to this thread. Reply to this

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-13 Thread Colomban Wendling
Maybe try simply deactivating the feature (`files.save_config_on_file_change` various pref) and see if it helps? That sounds slightly more trustworthy than mtimes, depending on the setup. Anyway, in theory the code guards against loading the session, but there possibly could be something

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-13 Thread Frank Lanitz
@ntrel Wasn't able to verify this from ls: `-rw-r--r-- 1 frlan frlan 13088 2020-11-13 20:53:24.582760636 +0100 geany.conf` from startup log: ``` Geany-INFO: 20:53:41.034: Geany 1.38 (git >= 40fcc798), de_DE.UTF-8 Geany-INFO: 20:53:41.035: GTK 3.24.23, GLib 2.66.2 Geany-INFO: 20:53:41.035: OS:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-13 Thread Nick Treleaven
One thing that changed in 1.37 is saving the config every time a document is opened (or closed). Is that behaviour active whilst opening a session? (Just an idea) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-12 Thread fyah
> please don't hijack this issue for unrelated things, open a dedicated one yep sure, sorry for that, I first thougth that this was a 1.37 only problem and that could be related... i created #2656 to reference this behavior -- You are receiving this because you are subscribed to this thread.

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-11 Thread Enrico Tröger
> > since it seems already to happen with 1.36, it might have a lot more causes > > :(. > > Does it? IIUC what "issue exists in 1.36" is totally unrelated and about > whether or not one can create more than one "untitled" files at once. Yeah, seems I mixed them up. Sorry. -- You are

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-11 Thread Colomban Wendling
> since it seems already to happen with 1.36, it might have a lot more causes > :(. Does it? IIUC what "issue exists in 1.36" is totally unrelated and about whether or not one can create more than one "untitled" files at once. @fyah @elextr BTW, please don't hijack this issue for unrelated

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-11 Thread Enrico Tröger
> Sorry if it's a silly question, it just hit me: which GTK version are we > using on OSX and Windows for 1.37 and before? As the default switched to 3.x, > do we use that? If 1.37 is the first GTK3 release there, it might very well > be that… 1.37 for Windows was still GTK2 and since it seems

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-11 Thread fyah
> Try without saveaction plugin. same behavior without the plugin the log shows the message about new file beeing created but nothing appears ![image](https://user-images.githubusercontent.com/2546966/98820487-839afc00-242e-11eb-85f0-2fbc5129d01a.png) the timestamps also illustrate the 2sec lag

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-10 Thread elextr
> whereas in 1.36 it will create 1 new document each time I click on "new" > (which is better and expected I think) Try without saveaction plugin. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-10 Thread fyah
Hi, looking at ReadMe.Dependencies.Geany.txt from 1.36: file:///var/cache/pacman/pkg/mingw-w64-i686-gtk2-2.24.32-4-any.pkg.tar.xz from 1.37: file:///var/cache/pacman/pkg/mingw-w64-i686-gtk2-2.24.32-6-any.pkg.tar.zst looking at this file might be the way indeed... how to tell which of the

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-10 Thread Colomban Wendling
Sorry if it's a silly question, it just hit me: which GTK version are we using on OSX and Windows for 1.37 and before? As the default switched to 3.x, do we use that? If 1.37 is the first GTK3 release there, it might very well be that… -- You are receiving this because you are subscribed to

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-10 Thread fyah
Hello I can definitely say that I notice the slowness since 1.37 file openning is slower, new file is slower as well running geany.exe -v it waits before message "Geany: unknown : None (UTF-8)" appears ``` GLib-GIO: _g_io_module_get_default: Found default implementation winhttp (GWinHttpVfs)

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-09 Thread Colomban Wendling
Maybe one reproducing the issue could bisect if it happened since 1.36? Not sure how easy bisecting is on Windows/Macos (probably depends on how easy it is to build), but that could possibly be a cheap-ish way of figuring this out. I'm exclusively on Linux, and my startup times always have

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-08 Thread elextr
> opening session files takes from 100ms to 300ms per file. IIRC he had similar > times on Linux und MacOS. Local files on a normal disk or what? What filetypes? One file, many files? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-08 Thread Enrico Tröger
@frlan reported also slowiness on startup. His debug message log indicated the startup itself is as fast as expected but opening session files takes from 100ms to 300ms per file. IIRC he had similar times on Linux und MacOS. Besides that, I agree with @elextr: this either needs some detailed

Re: [Github-comments] [geany/geany] Slow startup (#2649)

2020-11-08 Thread elextr
Information from the OPs of those comments/mails about how slow (numbers, "seems" isn't a measure) and how to reproduce might be useful. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: