]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package_manager: Performance tweak in regex usage
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Feb 2015 17:41:41 +0000 (17:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Feb 2015 22:04:25 +0000 (22:04 +0000)
commitd0244702752f54fb74be427af1663e46bfff9a5d
tree145b2460159e1e412812947948c50aa7a4e65023
parent468fa9a7fac86bb0fcd3cbd18dc1492b57ca25f3
lib/oe/package_manager: Performance tweak in regex usage

Profiling a core-image-sato-sdk rootfs, we're spending over 40s
compiling the same regex over and over again, roughly around 5 million
times.

This is suboptimal, fix for a 40s improvement on a 18.5minute task execution
time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py