Re: [Zim-wiki] Performance degraded in zim HEAD?
Hi Jaap, I have just tested on version 249, and the situation has improved. It is not completely gone, but I think there are some issues with the machine that I am using. Further communication on this topic will be filed on launchpad. Thanks for your efforts, Svenn On 18 May 2010 19:25, Jaap Karssenberg wrote: > On Thu, May 13, 2010 at 11:51 AM, Jaap Karssenberg > wrote: >> On Mon, May 3, 2010 at 4:49 PM, Svenn Are Bjerkem >> wrote: >>> I test the following way in a buffer with 50 open checkboxes: >>> 1) Press and hold the character 'a' until the cursor stops. >>> 2) Immediately release the key >>> 3) Wait until the * disappears >>> 4) Press and hold 'a' again. >> >> Confirmed this is happening on auto-save. Indexing ~50 tasks takes >> several seconds, so by the time you can type again there is only a few >> seconds left until the next auto-save :( > > Committed a patch in rev245 which improves the speed of autosaving > significantly in my testing. Could you check it and confirm if it > solves your problem ? > > If not please open a bug report for this. > > Thanks, > > Jaap > -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Performance degraded in zim HEAD?
On Thu, May 13, 2010 at 11:51 AM, Jaap Karssenberg wrote: > On Mon, May 3, 2010 at 4:49 PM, Svenn Are Bjerkem > wrote: >> I test the following way in a buffer with 50 open checkboxes: >> 1) Press and hold the character 'a' until the cursor stops. >> 2) Immediately release the key >> 3) Wait until the * disappears >> 4) Press and hold 'a' again. > > Confirmed this is happening on auto-save. Indexing ~50 tasks takes > several seconds, so by the time you can type again there is only a few > seconds left until the next auto-save :( Committed a patch in rev245 which improves the speed of autosaving significantly in my testing. Could you check it and confirm if it solves your problem ? If not please open a bug report for this. Thanks, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Performance degraded in zim HEAD?
On Mon, May 3, 2010 at 4:49 PM, Svenn Are Bjerkem wrote: > I test the following way in a buffer with 50 open checkboxes: > 1) Press and hold the character 'a' until the cursor stops. > 2) Immediately release the key > 3) Wait until the * disappears > 4) Press and hold 'a' again. Confirmed this is happening on auto-save. Indexing ~50 tasks takes several seconds, so by the time you can type again there is only a few seconds left until the next auto-save :( Didn't catch this before since my tasks are split over many pages. Will have to address before creating a new release. Thanks for testing and reporting this ! Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Performance degraded in zim HEAD?
On 3 May 2010 15:49, Jaap Karssenberg wrote: > On Mon, May 3, 2010 at 1:26 PM, Svenn Are Bjerkem > wrote: >> I checked a bit more, and on a page with 50 open checkboxes, there is >> significant lag when typing text in other parts of the page. The lag >> becomes more and more annoying as checkboxes are added. At around 30 >> checkboxes, the lag is very much present on a core i7-975 > > Just to be sure we talk about the same thing: you notice the lag when > the auto save kicks in while typing (every 5 seconds or so + you see > the "*" in the statusbar disappear) ? I look at the * while typing, and the cursor stops being responsive, but the star does not disappear when the cursor becomes responsive again. It is kind of hard to measure how long the cursor is responsive before the * disappears due to auto-save as typing another character makes the buffer dirty again. I do not know how often the auto-save feature is triggered, but the unresponsiveness of the buffer happens every 5 to 10 characters if I just hold a key pressed for a long time. The pause seems to be very periodical as if an event is triggered at regular intervalls (but it does not seem to be the auto-save functionality) I test the following way in a buffer with 50 open checkboxes: 1) Press and hold the character 'a' until the cursor stops. 2) Immediately release the key 3) Wait until the * disappears 4) Press and hold 'a' again. Between 1) and 2) is something like 5 to 10 characters When 2) happens, 1 to 2 seconds pass before the extra characters in the input buffer are printed 3) happens 3 to 5 seconds after the character buffer is emptied When 3) happens and 4) is done as fast as possible, sometimes only 1 character is printed before the cursor stops, sometimes as many as 15. It is hard to measure as the keyboard buffer is always filled with a couple of characters before I manage to release the button. I hoped it would be possible to reproduce this by inserting many open checkboxes into a page, but doing that on a different machine fails as it has 0.46 installed where the automatic update of the task list is not implemented. No lag whatsoever with 40 checkboxes and more. I will try to compile zim from bzr on that machine too to see if I can observe same behaviour. -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Performance degraded in zim HEAD?
On Mon, May 3, 2010 at 1:26 PM, Svenn Are Bjerkem wrote: > I checked a bit more, and on a page with 50 open checkboxes, there is > significant lag when typing text in other parts of the page. The lag > becomes more and more annoying as checkboxes are added. At around 30 > checkboxes, the lag is very much present on a core i7-975 Just to be sure we talk about the same thing: you notice the lag when the auto save kicks in while typing (every 5 seconds or so + you see the "*" in the statusbar disappear) ? I assume less of an issue when opening a new page. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Performance degraded in zim HEAD?
On 8 April 2010 12:18, Jaap Karssenberg wrote: > On Thu, Apr 8, 2010 at 10:42 AM, Svenn Are Bjerkem > wrote: >> I checked out the newest development version where the task list is >> autmatically updated. >> I find that zim now tends to 'sleep' a bit while writing. Is this a >> result of the new indexing, or is it just me? > > An extra action is done when saving the page to index tasks, I would > not expect this to cause noticeable delay since all data is in memory > already. Would need to do some actual benchmarking to determine the > exact impact. > > In case of an autosave indexing actions are done immediately, and > saving the file to disk is scheduled as an asynchronous action. When > you close a page (e.g. by moving to another page) the page is indexed > and saved directly. For autosave I sometimes still notice a split > second delay while typing, but when changing pages the bottleneck is > definitely in the filesystem operation, not in the indexing. > > At which point do you exactly notice a delay ? I checked a bit more, and on a page with 50 open checkboxes, there is significant lag when typing text in other parts of the page. The lag becomes more and more annoying as checkboxes are added. At around 30 checkboxes, the lag is very much present on a core i7-975 -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Performance degraded in zim HEAD?
On Thu, Apr 8, 2010 at 10:42 AM, Svenn Are Bjerkem wrote: > I checked out the newest development version where the task list is > autmatically updated. > I find that zim now tends to 'sleep' a bit while writing. Is this a > result of the new indexing, or is it just me? An extra action is done when saving the page to index tasks, I would not expect this to cause noticeable delay since all data is in memory already. Would need to do some actual benchmarking to determine the exact impact. In case of an autosave indexing actions are done immediately, and saving the file to disk is scheduled as an asynchronous action. When you close a page (e.g. by moving to another page) the page is indexed and saved directly. For autosave I sometimes still notice a split second delay while typing, but when changing pages the bottleneck is definitely in the filesystem operation, not in the indexing. At which point do you exactly notice a delay ? Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] Performance degraded in zim HEAD?
Hi, I checked out the newest development version where the task list is autmatically updated. I find that zim now tends to 'sleep' a bit while writing. Is this a result of the new indexing, or is it just me? -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp