On 19-Jan-2014 Bram Moolenaar <[email protected]> wrote:
> 
> Anhad Jai Singh wrote:
> 
> > When I do 'o' (plain old 'o', no fancy mappings nothing, the deafult
> > open-INSERT-mode and take me to the next line 'o'), at a specific location
> > in a specific file, vim hits 100% CPU usage, becomes unresponsive and needs
> > to be killed.
> > 
[...]
> 
> I can reproduce it.
> 
> Note that you can press CTRL-C to get out, no need to kill Vim.
> 
> Can someone use :syntime to find out what is causing this problem?

So can I.  Here's what I got (I let it run for about 3 minutes, then 
interrupted it):

  TOTAL      COUNT  MATCH   SLOWEST     AVERAGE   NAME               PATTERN
  1.893275   505400 379032   0.005541   0.000004  javaScriptParens   [()]
  1.369679   126376 0       0.009558    0.000011  javaScriptNumber   
-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>
  1.314292   126368 0       0.004043    0.000010  htmlCssStyleComment 
\(<!--\|-->\)
  1.312388   252704 252648   0.004191   0.000005  javaScriptBraces   [{}\[\]]
  0.589269   126376 0       0.009970    0.000005  javaScriptCommentSkip ^[ 
\t]*\*\($\|[ \t]\+\)
  0.254323   126368 16      0.000804    0.000002  javaScript         </script>
  0.230915   126376 32      0.000794    0.000002  javaScriptRegexpString /[^/*]
  0.227970   126376 0       0.000475    0.000002  javaScriptSpecialCharacter 
'\\.'
  0.227366   126368 16      0.008011    0.000002  htmlScriptTag      <script
  0.225441   126376 0       0.000512    0.000002  javaScriptSpecial  
\\\d\d\d\|\\.
  0.223608   126376 0       0.002337    0.000002  javaScriptStringS  '
  0.223040   126490 0       0.000944    0.000002  phpRegionSc        <script 
language="php">
  0.221417   126376 8       0.000329    0.000002  javaScriptLineComment \/\/.*
  0.220387   126392 40      0.000838    0.000002  javaScriptStringD  "
  0.220120   126586 114     0.000484    0.000002  phpRegion          <?\(php\)\=
  0.219446   126376 0       0.000315    0.000002  javaScriptComment  /\*
  0.218324   126723 0       0.000569    0.000002  phpAssignByRef     =\s*&
  0.009846   249    0       0.000229    0.000040  phpHereDoc         
\(<<<\)\@<=\(\"\=\)\z(\I\i*\)\2$
  0.009771   249    0       0.000240    0.000039  phpHereDoc         
\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)\2$
  0.009344   249    0       0.000196    0.000038  phpHereDoc         
\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)\2$
  0.009255   249    0       0.000198    0.000037  phpHereDoc         
\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(html\)\c\(\i*\)\)\2$
  0.004066   249    0       0.000125    0.000016  phpFloat           
\(-\=\<\d+\|-\=\)\.\d\+\>
  0.003642   361    152     0.000055    0.000010  phpComparison      
\v[=<>-]@<![<>]\=?[<>]@!
  0.003245   249    57      0.000148    0.000013  phpComment         
//.\{-}\(?>\|$\)\@=
  0.003111   595    414     0.000039    0.000005  phpParent          [({[\]})]
  0.002955   422    225     0.000038    0.000007  phpOperator        
[-=+%^&|*!.~?:]
  0.002521   249    0       0.000050    0.000010  phpOperator        
[-+*/%^&|.]=
  0.002112   249    0       0.000281    0.000008  phpNowDoc          
\(<<<\)\@<='\z(\(\I\i*\)\=\(sql\)\c\(\i*\)\)'$
  0.001996   249    0       0.000032    0.000008  phpNowDoc          
\(<<<\)\@<='\z(\(\I\i*\)\=\(javascript\)\c\(\i*\)\)'$
  0.001940   249    7       0.000038    0.000008  phpOperator        
||\|\<x\=or\>
  0.001893   249    0       0.000034    0.000008  phpNumber          -\=\<\d\+\>
  0.001827   249    0       0.000032    0.000007  phpNowDoc          
\(<<<\)\@<='\z(\(\I\i*\)\=\(html\)\c\(\i*\)\)'$
  0.001824   249    0       0.000038    0.000007  phpOperator        &&\|\<and\>
  0.001721   249    0       0.000028    0.000007  phpNowDoc          
\(<<<\)\@<='\z(\I\i*\)'$
  0.001707   327    78      0.000023    0.000005  phpComparison      \v[=!]\=\=?
  0.001651   272    23      0.000029    0.000006  phpRelation        [!=<>]=
  0.001531   464    215     0.000024    0.000003  phpIdentifier      $\h\w*
  0.001439   273    64      0.000023    0.000005  phpRelation        [<>]
  0.001036   155    80      0.000023    0.000007  htmlArg            
\<\(http-equiv\|href\|title\)=
  0.000858   99     40      0.000086    0.000009  htmlTagName        
\<\(b\|i\|u\|h[1-6]\|em\|strong\|head\|body\|title\)\>
  0.000781   249    0       0.000316    0.000003  phpBacktick        `
  0.000743   219    128     0.000012    0.000003  htmlTagN           
</\s*[-a-zA-Z0-9]\+
  0.000697   374    125     0.000004    0.000002  phpOperator        \$
  0.000688   325    24      0.000009    0.000002  phpRegion          ?>
  0.000652   91     0       0.000027    0.000007  htmlTagError       [^>]<
  0.000640   288    104     0.000006    0.000002  phpOperator        /[^*/]
  0.000639   335    93      0.000004    0.000002  phpStringDouble    "
  0.000602   101    72      0.000025    0.000006  htmlError          [<>&]
  0.000591   75     0       0.000030    0.000008  htmlArg            
\<\(accept-charset\|label\)\>
  0.000560   146    0       0.000024    0.000004  javaScript         <script 
\_[^>]*language *=\_[^>]*vbscript\_[^>]*>
  0.000557   166    75      0.000013    0.000003  htmlTagN           
<\s*[-a-zA-Z0-9]\+
  0.000555   197    125     0.000007    0.000003  htmlTag            <[^/]
  0.000539   284    49      0.000004    0.000002  phpStringSingle    '
  0.000522   154    16      0.000013    0.000003  javaScript         
<script\_[^>]*>
  0.000472   283    208     0.000003    0.000002  htmlString         "
  0.000472   249    0       0.000004    0.000002  phpComment         /\*
  0.000467   249    0       0.000004    0.000002  phpNumber          
\<0x\x\{1,8}\>
  0.000462   249    0       0.000004    0.000002  phpMethodsVar      ->\h\w*
  0.000462   249    0       0.000004    0.000002  phpComment         
#.\{-}\(?>\|$\)\@=
  0.000441   243    169     0.000004    0.000002  phpVarSelector     \$
  0.000431   238    238     0.000004    0.000002  htmlTag            >
  0.000407   154    8       0.000006    0.000003  htmlTitle          <title\>
  0.000387   146    0       0.000006    0.000003  htmlLink           
<a\>\_[^>]*\<href\>
  0.000367   144    0       0.000012    0.000003  htmlHead           <h[1-6]\>
  0.000349   178    72      0.000004    0.000002  htmlEndTag         </
  0.000332   147    0       0.000006    0.000002  phpDocTodo         
@\(todo\|fixme\|xxx\)\(\s\+\)\?
  0.000328   147    0       0.000008    0.000002  phpDocTags         
{@\(example\|id\|internal\|inheritdoc\|link\|source\|toc\|tutorial\)
  0.000307   146    8       0.000004    0.000002  htmlComment        <!
  0.000303   147    0       0.000004    0.000002  phpDocTags         
@\(abstract\|access\|author\|category\|copyright\|deprecated\|example\|final\|global\|ign
  0.000301   144    0       0.000005    0.000002  htmlHead           <body\>
  0.000300   146    0       0.000004    0.000002  htmlComment        <!DOCTYPE
  0.000300   146    0       0.000004    0.000002  cssStyle           <style
  0.000297   146    0       0.000004    0.000002  htmlPreProc        <!--#
  0.000294   147    0       0.000004    0.000002  phpDocCustomTags   
@[a-zA-Z]*\(\s\+\|\n\|\r\)
  0.000293   146    0       0.000004    0.000002  htmlSpecialChar    
&#\=[0-9A-Za-z]\{1,8};
  0.000285   114    0       0.000007    0.000003  htmlCssDefinition  style="
  0.000263   90     0       0.000027    0.000003  htmlItalic         <em\>
  0.000255   90     8       0.000007    0.000003  htmlHead           <head\>
  0.000252   90     0       0.000010    0.000003  htmlItalic         <i\>
  0.000250   144    8       0.000004    0.000002  htmlHead           </head>
  0.000247   91     16      0.000007    0.000003  htmlEvent          
\<on\a\+\s*=[\t ]*"
  0.000245   90     0       0.000006    0.000003  htmlBold           <b\>
  0.000245   90     0       0.000009    0.000003  htmlBold           <strong\>
  0.000243   90     0       0.000005    0.000003  htmlH6             <h6\>
  0.000239   90     0       0.000005    0.000003  htmlH1             <h1\>
  0.000237   90     0       0.000005    0.000003  htmlUnderline      <u\>
  0.000235   90     0       0.000006    0.000003  htmlH3             <h3\>
  0.000235   90     0       0.000006    0.000003  htmlH4             <h4\>
  0.000235   90     0       0.000005    0.000003  htmlH5             <h5\>
  0.000233   90     0       0.000005    0.000003  htmlH2             <h2\>
  0.000189   75     0       0.000006    0.000003  htmlEvent          
\<on\a\+\s*=[\t ]*'
  0.000185   75     0       0.000007    0.000002  htmlValue          =[\t 
]*[^'" \t>][^ \t>]*
  0.000145   75     0       0.000004    0.000002  htmlArg            \<z-index\>
  0.000136   80     80      0.000003    0.000002  htmlString         "
  0.000136   80     80      0.000002    0.000002  htmlScriptTag      >
  0.000132   75     0       0.000003    0.000002  htmlString         '
  0.000130   80     80      0.000003    0.000002  htmlEndTag         >
  0.000071   36     36      0.000003    0.000002  phpStringDouble    "
  0.000070   40     0       0.000004    0.000002  javaScriptExpression &{
  0.000066   29     0       0.000011    0.000002  phpInterpDollarCurly2 
\${\h\w*->
  0.000066   36     0       0.000003    0.000002  phpStringDouble    \\\\\|\\"
  0.000057   29     0       0.000003    0.000002  phpInterpBogusDollarCurley 
${[^}]*}
  0.000056   29     0       0.000003    0.000002  phpInterpSimple    
\$\h\w*\(\[[^]]*\]\|->\h\w*\)\?
  0.000056   29     0       0.000003    0.000002  phpBackslashSequences 
\\\d\{1,3}
  0.000055   29     0       0.000003    0.000002  phpInterpComplex   {\$
  0.000055   29     0       0.000003    0.000002  phpBackslashSequences 
\\[fnrtv\\\"$]
  0.000054   24     24      0.000004    0.000002  htmlTitle          </title>
  0.000054   29     0       0.000003    0.000002  phpInterpBogusDollarCurley 
${\h\w*->}
  0.000053   29     0       0.000003    0.000002  phpInterpDollarCurly1 
\${\h\w*\[
  0.000053   29     0       0.000003    0.000002  phpBackslashSequences 
\\x\x\{1,2}
  0.000051   29     0       0.000003    0.000002  phpInterpSimpleCurly \${\h\w*}
  0.000051   29     0       0.000003    0.000002  phpInterpBogusDollarCurley 
${\h\w*\[]}
  0.000051   29     0       0.000003    0.000002  phpBackslashDoubleQuote \\[\"]
  0.000050   16     8       0.000006    0.000003  htmlCommentError   [^><!]
  0.000034   16     16      0.000004    0.000002  htmlComment        >
  0.000034   24     24      0.000002    0.000001  htmlEventDQ        "
  0.000030   14     0       0.000003    0.000002  phpStringSingle    \\\\\|\\'
  0.000028   16     0       0.000002    0.000002  javaScriptRegexpString 
/[gim]\{0,2\}\s*$
  0.000028   14     0       0.000003    0.000002  phpBackslashSingleQuote 
\\[\\']
  0.000027   16     8       0.000003    0.000002  htmlCommentPart    --
  0.000027   8      8       0.000006    0.000003  htmlCommentPart    --\s*
  0.000027   14     14      0.000003    0.000002  phpStringSingle    '
  0.000025   8      8       0.000004    0.000003  javaScriptStringD  "\|$
  0.000025   16     0       0.000002    0.000002  javaScriptRegexpString 
/[gim]\{0,2\}\s*[;.,)\]}]
  0.000025   16     16      0.000002    0.000002  htmlEventDQ        "
  0.000017   8      0       0.000003    0.000002  javaScriptStringD  \\\\\|\\"
  0.000013   8      8       0.000002    0.000002  htmlEvent          "

  9.293150   2670356

Cheers,
Lech

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui