I tried profiling leo again, this time to see why reading a file was
unbearably slow on my eee. This session is just from opening leoPyref
(on qt). Seems like moveToThreadNextUnique is run way too much, and is
killing the performance.
ncalls tottime percall cumtime percall filename:lineno(function)
153511 18.058 0.000 47.338 0.000
leoNodes.py:1812(moveToThreadNextUnique)
1 15.398 15.398 171.923 171.923 {built-in method exec_}
165857 9.174 0.000 15.842 0.000 leoGlobals.py:4163(skip_ws)
184643 7.819 0.000 9.937 0.000 leoGlobals.py:4576(toUnicode)
895313 6.204 0.000 6.204 0.000 leoNodes.py:1091(__nonzero__)
880893 6.056 0.000 6.056 0.000 leoGlobals.py:3948(is_ws)
153564 5.747 0.000 56.324 0.000 leoNodes.py:1795(next)
32 5.532 0.173 68.468 2.140 leoAtFile.py:826(scanText4)
182501 5.492 0.000 9.177 0.000 leoNodes.py:1314(hasNext)
284579 5.305 0.000 8.429 0.000 leoGlobals.py:3959(match)
138551 5.221 0.000 7.749 0.000 leoNodes.py:2534(moveToNext)
114061 5.201 0.000 28.247 0.000 leoAtFile.py:1582(sentinelKind4)
655380 5.042 0.000 5.042 0.000 leoNodes.py:1780(<lambda>)
321128 4.967 0.000 4.967 0.000 leoNodes.py:2860(_parentVnode)
1205835/1205760 4.488 0.000 4.488 0.000 {len}
49 4.165 0.085 4.167 0.085 {built-in method repaint}
114190 2.964 0.000 13.848 0.000 leoAtFile.py:1881(readLine)
576617 2.945 0.000 2.945 0.000 {method 'get' of 'dict' objects}
96402 2.741 0.000 2.741 0.000
leoGlobals.py:5613(removeLeadingWhitespace)
32 2.690 0.084 129.540 4.048 leoAtFile.py:441(read)
97981 2.681 0.000 6.230 0.000 leoAtFile.py:890(readNormalLine)
334525 2.651 0.000 2.651 0.000 {method 'find' of
'unicode' objects}
114190 2.476 0.000 4.524 0.000
leoGlobals.py:2351(readlineForceUnixNewline)
131958 2.126 0.000 2.126 0.000 {hasattr}
--
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
-~----------~----~----~----~------~----~------~--~---