oe-lite / core

Official OE-lite/core repository - moved to GitLab.com
https://gitlab.com/oe-lite/core
Other
4 stars 17 forks source link

optimize libmagic use #199

Closed Villemoes closed 7 years ago

Villemoes commented 7 years ago

runstrip opens, parses and closes the system's "magic" database for every file it processes, which is somewhat wasteful.

Each do_chrpath leaks the open database handle, which amounts to 700MB+ of extra VM during oe bake world.

Since we only ever use the default database with default flags, just open and parse the database once.