]> xenbits.xensource.com Git - people/royger/xen.git/commit
include: speed up compat header generation
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Jan 2017 14:10:21 +0000 (15:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Jan 2017 14:10:21 +0000 (15:10 +0100)
commit91f59d2041b0f2760da082827bcea57648845cc1
tree1e731a5289ea45529eccbda3acfaf419c3457c01
parent05118b1596ffe4559549edbb28bd0124a7316123
include: speed up compat header generation

Recent additions to xlat.lst have apparently resulted in Python's
garbage collection getting in the way: I would guess that so far it
managed to re-use previously compiled regular expressions, but with the
higher number of them now can't anymore (at least with default
settings). Do the compilation explicitly. While at it, combine the two
lists, and avoid using re.subn() when re.sub() suffices.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/tools/compat-build-source.py