On Thu, May 29, 2003 at 02:32:00AM +0100, John Levon wrote:

> Load extended.lyx and find the first Itemize list, then increase the
> depth of one of the items. Dead slow. Has to be fixed I think

Lars, looks like you're right about find_if :

CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 
0x00 (No unit mask) count 23150
vma      samples  %           image name               symbol name
08153028 7349      8.5427     lyx                      VSpace::operator==(VSpace 
const&) const
08092b84 6755      7.8522     lyx                      
vector<boost::shared_ptr<ParameterStruct>>::iterator 
find_if<vector<boost::shared_ptr<ParameterStruct>>::iterator, 
ShareContainer<ParameterStruct>::isEqual>(vector<boost::shared_ptr<ParameterStruct>>::iterator,
 vector<boost::shared_ptr<ParameterStruct>>::iterator, 
ShareContainer<ParameterStruct>::isEqual, random_access_iterator_tag)
00069a10 5671      6.5921     libstdc++.so.5.0.1       string::find(char const*, 
unsigned, unsigned) const
0006a250 3331      3.8720     libstdc++.so.5.0.1       string::compare(string const&) 
const
4201e850 3047      3.5419     libc-2.3.2.so            __GI_setlocale
00009f30 1762      2.0482     libpthread-0.10.so       __pthread_alt_unlock
420745e0 1698      1.9738     libc-2.3.2.so            _int_malloc
4207b8d0 1603      1.8634     libc-2.3.2.so            strlen
0000a120 1532      1.7808     libpthread-0.10.so       __pthread_alt_lock
4207a6a0 1476      1.7157     libc-2.3.2.so            strcmp
4207d870 1381      1.6053     libc-2.3.2.so            memcpy
4202a510 1278      1.4856     libc-2.3.2.so            __GI_getenv
0806ddf8 1264      1.4693     lyx                      
_Rb_tree_base_iterator::_M_increment()
42047c80 1144      1.3298     libc-2.3.2.so            _IO_vfprintf_internal
0813bdb4 1095      1.2729     lyx                      LyXText::setCounter(Buffer 
const*, _List_iterator<Paragraph, Paragraph&, Paragraph*>)
08093d94 999       1.1613     lyx                      Spacing::getValue() const
4207a530 943       1.0962     libc-2.3.2.so            index
080bdc5c 883       1.0264     lyx                      Counters::reset(string const&)

What does this ParameterStruct lookup do ?

regards
john

Reply via email to