Re: advanced search (slowness and memory usage)

2013-04-03 Thread Tommaso Cucinotta
On 11/03/13 11:22, Kornel Benko wrote: > Hi, > > advanced search in my document (for a non-existent string on all opened > documents): > takes 227 seconds. Moreover, at the end of search (dialog asking to start > over) > eats so much memory ( > 4GB), that my computer starts to using swap disk.

Re: advanced search (slowness and memory usage)

2013-03-13 Thread Richard Heck
On 03/13/2013 05:55 AM, Kornel Benko wrote: Am Dienstag, 12. März 2013 um 17:09:33, schrieb Pavel Sanda > Kornel Benko wrote: > > Than I tried lyx, as I most of the time use. > > 1.) with own userdir > > 2.) with some debug output. > > MEMORY use!!! > > Isn't it only debug output flush

Re: Re: Re: advanced search (slowness and memory usage)

2013-03-13 Thread Kornel Benko
Am Dienstag, 12. März 2013 um 17:09:33, schrieb Pavel Sanda > Kornel Benko wrote: > > Than I tried lyx, as I most of the time use. > > 1.) with own userdir > > 2.) with some debug output. > > MEMORY use!!! > > Isn't it only debug output flushed into debug window at the end? > P It may we

Re: Re: advanced search (slowness and memory usage)

2013-03-12 Thread Pavel Sanda
Kornel Benko wrote: > Than I tried lyx, as I most of the time use. > 1.) with own userdir > 2.) with some debug output. > MEMORY use!!! Isn't it only debug output flushed into debug window at the end? P

Re: Re: advanced search (slowness and memory usage)

2013-03-12 Thread Kornel Benko
Am Dienstag, 12. März 2013 um 15:08:54, schrieb Richard Heck > JMarc's post showed some heavy memory consumption in the BibTeX parser. > I wasn't able to get any kind of hit when I put a breakpoint into > InsetBibtex::parseBibTeX(). But maybe your file is different from any I > tried. Can you s

Re: Re: advanced search (slowness and memory usage)

2013-03-12 Thread Kornel Benko
Am Dienstag, 12. März 2013 um 15:08:54, schrieb Richard Heck > On 03/12/2013 02:09 PM, Kornel Benko wrote: > > > > Am Dienstag, 12. März 2013 um 18:57:06, schrieb Kornel Benko > > > > > > > > > > > > In order to measure the time, I have a konsole-window with "date" > > > > > Start the advaced se

Re: advanced search (slowness and memory usage)

2013-03-12 Thread Richard Heck
On 03/12/2013 02:09 PM, Kornel Benko wrote: Am Dienstag, 12. März 2013 um 18:57:06, schrieb Kornel Benko > > In order to measure the time, I have a konsole-window with "date" > Start the advaced search. > As soon, as the search ends, e.g. the expected dialog displays, > I get the focus t

Re: Re: Re: advanced search (slowness and memory usage)

2013-03-12 Thread Kornel Benko
Am Dienstag, 12. März 2013 um 18:57:06, schrieb Kornel Benko > > In order to measure the time, I have a konsole-window with "date" > Start the advaced search. > As soon, as the search ends, e.g. the expected dialog displays, > I get the focus to the konsole, insert > From now on, the memory usag

Re: Re: advanced search (slowness and memory usage)

2013-03-12 Thread Kornel Benko
Am Dienstag, 12. März 2013 um 13:08:32, schrieb Richard Heck > On 03/11/2013 02:41 PM, Kornel Benko wrote: > > > > Am Montag, 11. März 2013 um 14:23:59, schrieb Richard Heck > > > > > > > On 03/11/2013 12:46 PM, Kornel Benko wrote: > > > > > > > > > > ... > > > > > > > > > > > > add InsetBibtex:

Re: advanced search (slowness and memory usage)

2013-03-12 Thread Richard Heck
On 03/11/2013 02:41 PM, Kornel Benko wrote: Am Montag, 11. März 2013 um 14:23:59, schrieb Richard Heck > On 03/11/2013 12:46 PM, Kornel Benko wrote: > > ... > > > > add InsetBibtex::plaintext() again. > > > Can you post a backtrace showing where that is being called from? I > don't kn

Re: advanced search (slowness and memory usage)

2013-03-12 Thread Jean-Marc Lasgouttes
Here is a streamlined version of the massif file that Kornel sent privately to me. As far as I can see below, it only accounts for 50 to 100MB. Comments in the output below (I replaced ugle basic_string<> expressions with docstring). JMarc The memory is actually increasing and the largest s

Re: advanced search (slowness and memory usage)

2013-03-12 Thread Richard Heck
On 03/11/2013 02:41 PM, Kornel Benko wrote: Am Montag, 11. März 2013 um 14:23:59, schrieb Richard Heck > On 03/11/2013 12:46 PM, Kornel Benko wrote: > > ... > > > > add InsetBibtex::plaintext() again. > > > Can you post a backtrace showing where that is being called from? I > don't kn

Re: advanced search (slowness and memory usage)

2013-03-12 Thread Jean-Marc Lasgouttes
Le 11/03/13 19:33, Kornel Benko a écrit : Am Montag, 11. März 2013 um 17:46:50, schrieb Kornel Benko I tried, but got only this output with #valgrind --tool=massif ... ==21508== Massif, a heap profiler ==21508== Copyright (C) 2003-2011, and GNU GPL'd, by Nicholas Nethercote ==21508== Using

Re: Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 19:28:47, schrieb Jean-Marc Lasgouttes > > Kornel Benko a écrit : > >Interested in the valgrind output (267 kb)? > > > Sure. Aaah. I incidentally replaced it with output of 'valgrind --tool=massif' But will make a new one. Tomorrow, OK? > JMarc Kornel s

Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 14:23:59, schrieb Richard Heck > On 03/11/2013 12:46 PM, Kornel Benko wrote: > > ... > > > > add InsetBibtex::plaintext() again. > > > Can you post a backtrace showing where that is being called from? I > don't know what advanced search is doing exactly, but I know it

Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Jean-Marc Lasgouttes
Kornel Benko a écrit : >Interested in the valgrind output (267 kb)? Sure. JMarc

Re: Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 17:46:50, schrieb Kornel Benko > > Another possibility is to use the 'massif' tool of valgrind. It will > > tell you where the data is allocated. > > I will try this one also. > I tried, but got only this output with #valgrind --tool=massif ... ==21508== M

Re: advanced search (slowness and memory usage)

2013-03-11 Thread Richard Heck
On 03/11/2013 12:46 PM, Kornel Benko wrote: Am Montag, 11. März 2013 um 15:33:36, schrieb Jean-Marc Lasgouttes > Le 11/03/2013 14:42, Kornel Benko a écrit : > > ==11211== LEAK SUMMARY: > > ==11211== definitely lost: 33,700 bytes in 189 blocks > > ==11211== indirectly lost: 59,454 bytes in

Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 15:33:36, schrieb Jean-Marc Lasgouttes > Le 11/03/2013 14:42, Kornel Benko a écrit : > > ==11211== LEAK SUMMARY: > > ==11211== definitely lost: 33,700 bytes in 189 blocks > > ==11211== indirectly lost: 59,454 bytes in 1,606 blocks > > ==11211== possibly lost: 15,783 by

Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 15:41:06, schrieb Jean-Marc Lasgouttes > Le 11/03/2013 13:42, Kornel Benko a écrit : > > > I tried the merged manual, and indeed it is very slow. Are you trying > > > with stdlib-debug on? > > > > I don't think so. How can I check? > > > > In cmake I am creating a de

Re: advanced search (slowness and memory usage)

2013-03-11 Thread Jean-Marc Lasgouttes
Le 11/03/2013 13:42, Kornel Benko a écrit : > I tried the merged manual, and indeed it is very slow. Are you trying > with stdlib-debug on? I don't think so. How can I check? In cmake I am creating a debug version, but without using LYX_STDLIB_DEBUG. This means, the gcc does *not* have -D_G

Re: advanced search (slowness and memory usage)

2013-03-11 Thread Jean-Marc Lasgouttes
Le 11/03/2013 14:42, Kornel Benko a écrit : ==11211== LEAK SUMMARY: ==11211== definitely lost: 33,700 bytes in 189 blocks ==11211== indirectly lost: 59,454 bytes in 1,606 blocks ==11211== possibly lost: 15,783 bytes in 59 blocks ==11211== still reachable: 1,721,311 bytes in 8,392 blocks ==11211==

Re: Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 13:42:34, schrieb Kornel Benko > > Trying... takes nearly forever ... only 1 of my 4 cpu's is busy (100%) ... > > will mail again, when (and if?) the seach under valgrind ends. > > > JMarc So, search finished, no visible memory lost. The dialog Opened files

Re: Re: advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Am Montag, 11. März 2013 um 12:43:30, schrieb Jean-Marc Lasgouttes > Le 11/03/2013 12:22, Kornel Benko a écrit : > > Hi, > > > > advanced search in my document (for a non-existent string on all opened > > documents): > > > > takes 227 seconds. Moreover, at the end of search (dialog asking to > >

Re: advanced search (slowness and memory usage)

2013-03-11 Thread Jean-Marc Lasgouttes
Le 11/03/2013 12:22, Kornel Benko a écrit : Hi, advanced search in my document (for a non-existent string on all opened documents): takes 227 seconds. Moreover, at the end of search (dialog asking to start over) I tried the merged manual, and indeed it is very slow. Are you trying with stdli

advanced search (slowness and memory usage)

2013-03-11 Thread Kornel Benko
Hi, advanced search in my document (for a non-existent string on all opened documents): takes 227 seconds. Moreover, at the end of search (dialog asking to start over) eats so much memory ( > 4GB), that my computer starts to using swap disk. Being warned on the plaintext problem, I checked the t