Hi
I turned ON the profiler and my web app takes like 12 seconds to start. A
lot of time is spent on cheetah compiling and SourceReader.py.
How can I improve this?
thanks
mark




         950239 function calls (947202 primitive calls) in 12.410 CPU
seconds

   Ordered by: internal time, call count
   List reduced from 495 to 40 due to restriction <40>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
     3908    6.492    0.002    6.499    0.002 SourceReader.py:247(findBOL)
      971    0.655    0.001    0.655    0.001 SourceReader.py:101(lineNum)
     1166    0.529    0.000    2.288    0.002 Parser.py:1466(eatPlainText)
    99659    0.475    0.000    0.669    0.000 SourceReader.py:181(peek)
   190970    0.371    0.000    0.371    0.000 SourceReader.py:139(checkPos)
    66382    0.349    0.000    1.148    0.000 Parser.py
:525(matchTopLevelToken)
    68008    0.322    0.000    0.453    0.000 SourceReader.py:200(advance)
     4690    0.260    0.000    0.260    0.000 SourceReader.py:231(find)
     2824    0.196    0.000    0.320    0.000 Parser.py
:665(matchDirectiveName)
    97782    0.190    0.000    0.190    0.000 SourceReader.py:175(atEnd)
    96875    0.171    0.000    0.171    0.000 SourceReader.py:128(pos)
    70887    0.126    0.000    0.126    0.000 SourceReader.py:79(src)
1380/1283    0.108    0.000    0.905    0.001 Parser.py
:1051(getExpressionParts)
        1    0.102    0.102   12.337   12.337 cheetah.py
:22(__compiletemplate)
     9744    0.081    0.000    0.115    0.000 Parser.py
:690(matchDirectiveStartToken)
        1    0.079    0.079    0.083    0.083 <string>:8(<module>)
    12951    0.071    0.000    0.097    0.000 SourceReader.py:214(readTo)
     5888    0.063    0.000    0.556    0.000 Parser.py:654(matchDirective)
     6834    0.062    0.000    0.086    0.000 Parser.py
:572(matchCommentStartToken)
1688/1432    0.060    0.000    0.436    0.000 Parser.py
:822(getCheetahVarNameChunks)
     3994    0.057    0.000    0.102    0.000 Compiler.py:1599(__getattr__)
        1    0.055    0.055    7.265    7.265 Parser.py:1436(parse)
     1690    0.054    0.000    0.181    0.000 Parser.py:599(getDottedName)
    10009    0.053    0.000    0.072    0.000 SourceReader.py:186(getc)
     3438    0.052    0.000    0.168    0.000 SourceReader.py
:280(getWhiteSpace)
     5798    0.047    0.000    0.068    0.000 Parser.py
:751(matchVariablePlaceholderStart)
     5798    0.047    0.000    0.067    0.000 Parser.py
:581(matchMultiLineCommentStartToken)
     7988    0.046    0.000    0.046    0.000 Compiler.py:1174(__getattr__)
     5175    0.045    0.000    0.064    0.000 Parser.py
:699(matchDirectiveEndToken)
     9269    0.040    0.000    0.058    0.000 SourceReader.py:131(setPos)
     2863    0.039    0.000    0.049    0.000 Parser.py:545(matchPyToken)
    18763    0.039    0.000    0.039    0.000 SettingsManager.py
:463(setting)
     4855    0.038    0.000    0.056    0.000 Parser.py
:755(matchExpressionPlaceholderStart)
     5467    0.038    0.000    0.086    0.000 SourceReader.py
:277(matchWhiteSpace)
        1    0.035    0.035    4.840    4.840 SourceReader.py:28(__init__)
3202/2233    0.032    0.000    0.085    0.000 Compiler.py
:485(commitStrConst)
     3831    0.031    0.000    0.045    0.000 Parser.py
:747(matchCheetahVarInExpressionStartToken)
     1032    0.030    0.000    0.129    0.000 Parser.py
:1598(_eatRestOfDirectiveTag)
     6663    0.030    0.000    0.044    0.000 Parser.py:370(setting)
     3856    0.030    0.000    0.105    0.000 Parser.py
:693(getDirectiveStartToken)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to