bitbake: parse/ast: Optimise data finalisation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Apr 2014 10:48:53 +0000 (11:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Apr 2014 10:43:29 +0000 (11:43 +0100)
commit4ab050d5b33b7dff3411f4c22ddddc25f6dad2da
tree7dc66109d30c1cedc02c05f6c65e53358c3aff02
parentee2935782bae0a460ee3af8bed46c65a1b9623cf
bitbake: parse/ast: Optimise data finalisation

The optimisation where only the data we're interested in was finalised
was good but it turns out we can do better. In the case where a
class-extension is to be targeted, we can skip the other targets.

This change does that and speeds up parsing at the bitbake-worker
execution time. Specifically, you can see an improvement in the speed
of bitbake X -n.

(Bitbake rev: b56918c7ef7913e84356c69ee9b269844a446728)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/parse/ast.py