From 5a279aa01b85454d24e44898e581820d24e712b3 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 4 Jul 2012 15:22:59 -0600 Subject: regcomp.c: Optimize [^\n] into \N This optimization is a big win, as it takes less space, and completely avoids any swash hash creation, and use. --- t/re/re_tests | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/re') diff --git a/t/re/re_tests b/t/re/re_tests index 5647a4d845..46332b4d62 100644 --- a/t/re/re_tests +++ b/t/re/re_tests @@ -1689,4 +1689,7 @@ ab[c\\\](??{"x"})]{3}d ab\\](d y - - /[\H]/ \x{A0} n - - /[\H]/ \x{A1} y $& \xA1 +[^\n]+ \nb y $& b +[^\n]+ a\n y $& a + # vim: softtabstop=0 noexpandtab -- cgit v1.2.1