Date: Thu, 20 Dec 2018 15:13:07 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234217] Change compilation option for libarchive Message-ID: <bug-234217-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234217 Bug ID: 234217 Summary: Change compilation option for libarchive Product: Base System Version: 11.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: alexandre.martins@stormshield.eu Greetings, Currently, the libarchive is compiled without the flag HAVE_LZMA_STREAM_ENCODER_MT. It may be nice to add this flag to allow compression on multiple CPU. On my machine (4 CPU), if I compress 4GB of 0 in the standard way: $ time tar --options threads=3D0 -cJf test.txz zero real 1m18,200s user 1m16,910s sys 0m0,941s When libarchive is compiled with the flag: $ time tar --options threads=3D0 -cJf test.txz zero real 0m21,810s user 1m17,612s sys 0m1,478s The patch: -+-+-+-+-+-+- --- Makefile.orig 2018-12-20 16:09:26.863988000 +0100 +++ Makefile 2018-12-20 16:09:47.393163000 +0100 @@ -7,7 +7,7 @@ _LIBARCHIVEDIR=3D ${SRCTOP}/contrib/libarc LIB=3D archive LIBADD=3D z bz2 lzma bsdxml -CFLAGS+=3D -DHAVE_BZLIB_H=3D1 -DHAVE_LIBLZMA=3D1 -DHAVE_LZMA_H=3D1 +CFLAGS+=3D -DHAVE_BZLIB_H=3D1 -DHAVE_LIBLZMA=3D1 -DHAVE_LZMA_H=3D1 -DHAVE_LZMA_STREAM_ENCODER_MT=3D1 # FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. # It has no real relation to the libarchive version number. -+-+-+-+-+-+- Best regards, Alexandre --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234217-227>