Ben Fritz wrote:

> With each version of TOhtml I run a simple brute-force script at
> https://code.google.com/p/vim-2html-test/ to exercise all the plugin
> options. There is a .bat file for Windows and a .sh file for Linux.
> 
> With the same Vim version (patch 1115 I believe), regexpengine set to
> 1 takes around 350 seconds to run the script, but when set to zero it
> takes around 800 seconds.
> 
> This long of a run-time might be useful for finding and fixing
> bottlenecks in the new engine.
> 
> I'm interested in helping with that...what sorts of tools are people
> using to profile the new engine? I understand log files can be created
> somehow, are those helpful? If so how do I enable them?

You can enable the profiler in the Makefile.  The one using Gmon only
measures time per function though.  I already know that addstate() is
taking most time.  Need to try to reduce the number of calls.

Another way is to enable regexp logging (uncomment #define DEBUG in
regexp.c), try executing a pattern on some text, and see what it's been
doing.  This requires understanding how the state machine works.

-- 
>From "know your smileys":
 *<|:-) Santa Claus (Ho Ho Ho)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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