summaryrefslogtreecommitdiff
path: root/docs/markdown/Tutorial.md
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-01-08 12:51:46 +0100
committerEli Schwartz <eschwartz93@gmail.com>2025-01-08 13:45:26 -0500
commit95d0c40da5de2b85f11b9ccda93ed21969327464 (patch)
tree1b1f3b9e26560afa23a502654c3fd0cc4aa23f9f /docs/markdown/Tutorial.md
parentff5b5e66c9a759573af5f265a3404c3a144489de (diff)
downloadmeson-95d0c40da5de2b85f11b9ccda93ed21969327464.tar.gz
optimize Version.__init__
Version objects are created thousands of times by the check_version method of decorators. Creation is inefficient, resulting in five calls to re.match() that do not even use precompiled regex. The use of re.match() however is fully redundant, as finditer() can provide the same information with a better use of groupings. Do that and precompile the tokenization regex. This saves about 3% in the "meson setup" run of QEMU. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/Tutorial.md')
0 files changed, 0 insertions, 0 deletions