Every 2 seconds this is causing a lot of fork/execs that cause some contention. Rework this into a C daemon and possibly use kqueue to monitor the files that it is processing. A throttling mechanism is needed as we may have any number of packages change status in 1 second, but we only want to update these files once every few seconds at most.
Every 2 seconds this is causing a lot of fork/execs that cause some contention. Rework this into a C daemon and possibly use kqueue to monitor the files that it is processing. A throttling mechanism is needed as we may have any number of packages change status in 1 second, but we only want to update these files once every few seconds at most.