BBHandle.py: Instead of iterating through data.keys(d) calling getVarFlag each time...
authorRichard Purdie <rpurdie@linux.intel.com>
Sun, 19 Nov 2006 11:05:58 +0000 (11:05 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Sun, 19 Nov 2006 11:05:58 +0000 (11:05 +0000)
commit8daecd8e3883538d9175a9bb0dddd2c923680c44
treef441f3499bcb11088b9bd79e0beba38dce643cf1
parentec552e1b99dcf3eb7544adc526654b9cc8b6b3f2
BBHandle.py: Instead of iterating through data.keys(d) calling getVarFlag each time, memorise the list of handlers in __BBHANDLERS and tasks in __BBTASKS. Against 600 .bb files in poky, this removes 2 million function calls in total of which 700,000 were to getVarTask resulting in a 5-10% speedup
lib/bb/parse/parse_py/BBHandler.py