diff options
author | Richard Tollerton <rich.tollerton@ni.com> | 2014-12-08 17:13:35 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-19 17:54:14 +0000 |
commit | e8ea6a29ed3ab9892a3bc7ee8249f10688c0af29 (patch) | |
tree | c890649b03de4f96116dc1bfe1a0ca806ba88d11 /meta-selftest | |
parent | 107e7fa2b2cc2e06addb83518c03b3ab769fed6f (diff) | |
download | openembedded-core-e8ea6a29ed3ab9892a3bc7ee8249f10688c0af29.tar.gz openembedded-core-e8ea6a29ed3ab9892a3bc7ee8249f10688c0af29.tar.bz2 openembedded-core-e8ea6a29ed3ab9892a3bc7ee8249f10688c0af29.zip |
udev-cache: replace readfiles() with cmp
Currently, udev-cache system configurations are compared as shell string
variables, read into memory with the readfiles() function. This is more
complex, and significantly (27-41%) slower, than comparing them using
`cmp`. (Performance was verified on both Cortex-A9 and Intel Nehalem
systems.)
So just use cmp. This requires a few other small changes:
exclude /proc/atags from CMP_FILE_LIST if it doesn't exist to avoid
errors in `cat` and `cmp`.
`cmp -q` doesn't exist in busybox, so instead, redirect output to
/dev/null.
Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Diffstat (limited to 'meta-selftest')
0 files changed, 0 insertions, 0 deletions