I just wanted to give a heads up for this reboot, which caches the rpm
metrics in advance as opposed to version one's accessing them just in
time. This is an effort to improve the fetch performance. The rpm
metrics are cached into the data structure 'cache'. A hash table is
built; the key is the rpm name and the value is the pointer to the cache
entry. The hash table, via hsearch_r, is used to find the cache entry
for an rpm. The fetch callback accesses the cache and returns the
proper info. If the rpm database changes then it is reloaded.
-Currently inotify checks the entire dir to make testing easier
-The hashing sometimes fails; I am diagnosing that problem
-Threading needs to be revisited since the reboot
-A subset of available rpm metrics is being cached
committed to pcpfans scox/dev branch
|