diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-04 17:32:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-05 21:10:35 +0000 |
commit | 45a4b42a361eb791c571b201e11c3505a0a1a396 (patch) | |
tree | 726e108de16303b8e52a73d3309a4dadbefbbc59 /configure.ac | |
parent | 9194904fa838a115b4dc58e5bff7a235cc2a9a7a (diff) |
script: Recompress strings using LZO whilst binding traces
Try using the lighter-weight LZO decompressor in an effort to speed up
replays (at the cost of making the bound traces slightly larger).
Presuming that with the slight increase in file size (from -1% to +10%),
the file data remains in the readahead buffer cache, replays see a
performance improvement of between 5-10%.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fc8d3b196..31123c72b 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,18 @@ AC_CHECK_LIB(z, compress, [have_libz="no (requires zlib http://www.gzip.org/zlib/)"])], [have_libz="no (requires zlib http://www.gzip.org/zlib/)"]) +save_LIBS="$LIBS" +AC_CHECK_LIB(lzo2, lzo2a_decompress, + [AC_CHECK_HEADER(lzo/lzo2a.h, [ + have_lzo=yes + AC_DEFINE(HAVE_LZO, 1, [Define to 1 if you have lzo available]) + lzo_LIBS="-llzo2" + ], + [have_lzo="no (requires lzpo http://www.oberhumer.com/opensource/lzo/)"])], + [have_lzo="no (requires lzpo http://www.oberhumer.com/opensource/lzo/)"]) +AC_SUBST(lzo_LIBS) +LIBS="$save_LIBS" + AC_CHECK_LIB(dl, dlsym, [have_dlsym=yes; have_dl=yes], [have_dlsym=no; have_dl=no]) |