]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cooker: Further optimise pyinotify
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Jan 2015 11:16:20 +0000 (11:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Jan 2015 11:36:10 +0000 (11:36 +0000)
commita2d441237916a99405b800c1a3dc39f860100a8c
tree33fa01856a1f93cbedaf77ec27a269f7924d0275
parent4d1343010da757a0c126bc22475354da44aaf8e3
cooker: Further optimise pyinotify

We currently add crazy numbers of watches on files. The per user limit is 8192
by default and on a system handling multiple builds, this can be an issue.

We don't need to watch all files individually, we can watch the directory containing
the file instead. This gives better resource utilisation and better performance
further reverting some of the performance regression seen with the introduction
of pyinotify.

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