[poky] [PATCH 0/1][RFC] Optimize file parsing speed

Richard Purdie rpurdie at linux.intel.com
Sun Nov 28 06:27:45 PST 2010


Hi Dongxiao,

On Mon, 2010-11-22 at 14:04 +0800, Dongxiao Xu wrote:
> I found that when parsing bitbake files, most of the variables in
> d.keys() are in distro_tracking_fields.inc, and they are not used in
> normal build.
> 
> This pull request moves some distro related functions in
> utility-tasks.bbclass into distrodata.bbclass, and remove the inclusion
> of distro_tracking_fields.inc from poky.conf. This could gain about 25%
> parsing time saving.

I'm going to take the patch but I'd like to be clear where the speed
gains come from with this change. I suspect some are due to a smaller
number of keys but I also suspect the smaller number of tasks involved
helps too!

Also, a lot of those keys are override keys so perhaps its speeding up
update_data() calls and some of the gain is from there too?

Anyhow, its a good move :)

Cheers,

Richard




More information about the poky mailing list