It seems here's what kills the body editor performance. Luckily, it
seems it should be easily fixable.
Here's what I got from profiler:
ncalls tottime percall cumtime percall filename:lineno(function)
570687 16.821 0.000 30.696 0.000 ntpath.py:439(normpath)
553409 9.362 0.000 17.407 0.000 leoConfig.py:1351(canonicalizeSett
ingName)
1914790 5.069 0.000 5.069 0.000 {method 'replace' of 'unicode' obj
ects}
190040 4.489 0.000 47.083 0.000 leoGlobals.py:3269(os_path_finaliz
e)
2420828/2420571 4.344 0.000 4.345 0.000 {len}
189511 4.338 0.000 77.695 0.000 leoConfig.py:1410(get)
551572 4.177 0.000 22.947 0.000 leoConfig.py:1441(getValFromDict)
1424873 2.878 0.000 2.878 0.000 {method 'get' of 'dict' objects}
1083642 2.603 0.000 2.603 0.000 {method 'replace' of 'str' objects
}
189950 2.540 0.000 3.903 0.000 leoGlobals.py:3228(os_path_expandE
xpression)
1 2.255 2.255 2.262 2.262 {built-in method exec_}
190237 2.036 0.000 15.677 0.000 leoGlobals.py:3256(os_path_expandu
ser)
573321 1.954 0.000 1.954 0.000 {method 'split' of 'unicode' objec
ts}
571448 1.840 0.000 1.840 0.000 ntpath.py:116(splitdrive)
577257 1.722 0.000 1.722 0.000 {method 'join' of 'str' objects}
192444 1.584 0.000 2.820 0.000 leoGlobals.py:3426(toUnicodeFileEn
coding)
570652 1.494 0.000 1.494 0.000 {method 'lstrip' of 'unicode' obje
cts}
626 1.421 0.002 79.945 0.128 threading_colorizer.py:563(configu
So it seems we spend WAY too much time in canonicalizeSett
ingName (600000 calls!).
I got this by opening the default document and typing lots of stuff.
It actually got slow enough that leo hanged and I had to kill it.
If you are using ipython, you can test this by:
%run -p launchLeo.py --gui=qt
Type lots of text in body, and kill leo.
--
Ville M. Vainio
http://tinyurl.com/vainio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---