Changes between Initial Version and Version 1 of Ticket #2290, comment 11


Ignore:
Timestamp:
07/31/13 15:45:00 (11 years ago)
Author:
sknaumov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2290, comment 11

    initial v1  
    66>  
    77> I guess this doesn't give us a large profit, but... 
    8 Actually this patch slows down things a lot. On my new Virtualbox setup (Xubuntu 13.04, VDI image is on SSD) this patch increases search time from 17,5 to 20,65 seconds. It seems that using glib functions like g_string_append_c is very inefficient approach. 
     8Actually this patch slows down things a lot. On my new Virtualbox setup (Xubuntu 13.04, VDI image is on SSD) this patch increases search time from 17,5 to 20,65 seconds. Maybe using glib functions like g_string_append_c is very inefficient approach, but... 
     9Passing pointer to variable on stack to get_line_at function and setting resulting string length to it surprisingly increases search time to 19.3 seconds. Usage of global variable to pass length from get_line_at to mc_search_run decreases search time to 17.2 seconds.