bitbake: cooker: Improve pyinotify performance
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Apr 2015 14:57:05 +0000 (15:57 +0100)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 26 Jul 2015 13:13:56 +0000 (10:13 -0300)
commit36b5dabc74e7f6abf6c25d039148cdb53d094947
treefd59c3e77c6958afd04cf9e7c2ca9c28401fe277
parent9d26b86759ddad28e274cd0b10039e5d9468553b
bitbake: cooker: Improve pyinotify performance

Benchmarks show that the introduction of pyinotify regressed
performance. This patch ensures we only call the add_watch() function
for new entries, not ones we've already processed which does improve
performance as measured by "time bitbake -p".

This doesn't completely remove the overhead but it does substantially
reduce it.

(Bitbake rev: 493361f35f6cc332d4ea359a2695622c2c91a9c2)

(Bitbake rev: f668b347a8f9563f41d454288b9d4632190f308f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
bitbake/lib/bb/cooker.py