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

Tian, Kevin kevin.tian at intel.com
Sun Nov 28 16:32:02 PST 2010


>From: Richard Purdie
>Sent: Sunday, November 28, 2010 10:28 PM
>
>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 :)
>

Good to know the secret sauce, and the improvement is indeed obvious!

Thanks
Kevin



More information about the poky mailing list