A lot of work remains, and times will increase a bit. But Vitalije's
brilliant code is paying off. Here are the stats:
leoApp.py 3736 lines in 0.002 sec
leoAst.py 2986 lines in 0.001 sec
leoAtFile.py 5379 lines in 0.003 sec
leoBackground.py 229 lines in 0.000 sec
leoBeautify.py 1314 lines in 0.001 sec
leoBridge.py 309 lines in 0.000 sec
leoBridgeTest.py 81 lines in 0.000 sec
leoCache.py 1018 lines in 0.000 sec
leoChapters.py 481 lines in 0.000 sec
leoCheck.py 2084 lines in 0.001 sec
leoColor.py 764 lines in 0.000 sec
leoColorizer.py 2237 lines in 0.001 sec
leoCommands.py 3918 lines in 0.002 sec
leoCompare.py 711 lines in 0.000 sec
leoConfig.py 1963 lines in 0.001 sec
leoDebugger.py 33 lines in 0.000 sec
leoDynamicTest.py 114 lines in 0.000 sec
leoExternalFiles.py 620 lines in 0.000 sec
leoFileCommands.py 2654 lines in 0.001 sec
leoFind.py 2597 lines in 0.001 sec
leoFrame.py 2236 lines in 0.001 sec
leoGlobals.py 7791 lines in 0.004 sec
leoGui.py 581 lines in 0.000 sec
leoHistory.py 101 lines in 0.000 sec
leoImport.py 2462 lines in 0.001 sec
leoIPython.py 313 lines in 0.000 sec
leoKeys.py 4620 lines in 0.002 sec
leoMenu.py 675 lines in 0.000 sec
leoNodes.py 2645 lines in 0.001 sec
leoPersistence.py 532 lines in 0.000 sec
leoPlugins.py 668 lines in 0.000 sec
leoPrinting.py 281 lines in 0.000 sec
leoPymacs.py 129 lines in 0.000 sec
leoQt.py 171 lines in 0.000 sec
leoRope.py 69 lines in 0.000 sec
leoRst.py 2047 lines in 0.001 sec
leoSessions.py 180 lines in 0.000 sec
leoShadow.py 725 lines in 0.000 sec
leoTangle.py 3054 lines in 0.001 sec
leoTest.py 1832 lines in 0.001 sec
leoTips.py 629 lines in 0.000 sec
leoUndo.py 1791 lines in 0.001 sec
leoVersion.py 54 lines in 0.000 sec
leoVim.py 2504 lines in 0.001 sec
files: 44, lines: 69318, tot time: 0.034 sec
Here is @command fast-at-read:
g.cls()
if c.isChanged():
c.save()
import imp
import glob
import leo.core.leoAtFile as at
imp.reload(at)
files = glob.glob('C:/leo.repo/leo-editor/leo/core/leo*.py')
reports = []
for path in files:
assert g.os_path_exists(path), repr(path)
try:
report = at.FastAtRead(c).read(path)
reports.append(report)
except Exception:
g.es_exception()
tot_files, tot_lines, tot_time = 0, 0, 0.0
for report in reports:
sfn, lines, t = report
tot_files += 1
tot_time += t
tot_lines += lines
print('%20s %4s lines in %5.3f sec' % (sfn, lines, t))
print('files: %s, lines: %s, tot time: %5.3f sec' % (
tot_files, tot_lines, tot_time))
*Summary*
fast_at.scan_lines does all the heavy lifting. Much more to come.
It is thrilling to get off to such a good start.
I do hope nobody is seriously miffed that I am doing this work :-)
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.