You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a limit in the negative lookbehind clojureSymbol pattern
$ syntime clj/src/vim_clojure_static/generate.clj
Before:
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.031679 2003 1906 0.000092 0.000016 clojureSymbol \v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@<!
0.051484 27016
After:
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.010608 2003 1906 0.000030 0.000005 clojureSymbol \v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@1<!
0.030519 27016
$ curl -LO https://raw.githubusercontent.com/http-kit/http-kit/master/src/org/httpkit/client.clj
$ syntime client.clj
Before:
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.029451 2340 2293 0.000079 0.000013 clojureSymbol \v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@<!
0.046375 23668
After:
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.010855 2340 2293 0.000031 0.000005 clojureSymbol \v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@1<!
0.027972 23668
Thanks to Richard Hull (@rm-hull).
0 commit comments