]> granicus.if.org Git - libevent/commit
Precompile regular expressions
authorEnji Cooper <yaneurabeya@gmail.com>
Fri, 27 Mar 2020 04:02:13 +0000 (21:02 -0700)
committerEnji Cooper <yaneurabeya@gmail.com>
Fri, 27 Mar 2020 17:35:46 +0000 (10:35 -0700)
commit23874cfcd5a53e9738872865a1cf8683a9cf302e
treef1b31ccaccdd7574c733c1f188076f0b84a89a58
parent1b545a46cd920a16f9fb7abc2f5fab5b88b5bfa7
Precompile regular expressions

This change boost performance at scale by pre-compiling regular
expressions in the global space, then reusing them many times within
functions.

This (while not the desired intent of the author) will boost
performance when parsing input.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
event_rpcgen.py