Ron Aaron wrote:
> I'm sure there's a reason, but I wonder:
>
> why, in regexp_nfa.c "nfa_recognize_char_class()", is the "config"
> using chars instead of integer bitmaps? I would expect bitmaps to be
> faster (as well as taking less space).
Yeah, one of the things that still needs to be improved.
When using an int it could just use switch instead of looping to find
the match in config[].
Also note that it's put on the stack, it should be static.
If needed at all, possibly using #define.
So, if someone wants to work on this, please write a test, verify that
the test passes, then change to code to a more efficient version.
--
hundred-and-one symptoms of being an internet addict:
65. The last time you looked at the clock it was 11:30pm, and in what
seems like only a few seconds later, your sister runs past you to
catch her 7am school bus.
/// 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.