From nobody Mon Feb 19 23:01:17 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TdyhF6BlXz59gfr; Mon, 19 Feb 2024 23:01:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TdyhF5k67z4cwj; Mon, 19 Feb 2024 23:01:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708383677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eFIJpFFFsfRQ4L5gWvEXyXKul2CVt6fehry7xOJUD2c=; b=nD2uEwpXvmzYlxujrxbXhHddCihFno4JLH9X6rnmI8ISNXPuvw7WKRNcdRvX2ZsngFw7C/ JPtxxBnnReikE9K7MjqgYUXI29kZXvugBFGtxT9DD8ZN92Yy2tDhTbTyl6UVtQy6IVsKL4 jnYMMeLKJ2v8t4X2a0eEnsLUSmrg+aWBq+9N1xbtM8RFXvOSWWzmXYe1WBktGaBDPWRyTd XR3Ghe63V5X7+c9zSD8dzxVRLeME4k7DMFsRbe2mR1ip7us6jGfVr/LitwiMSYv8T9ESmz NIz4j5UtHR7kA92tYiUce7UXSDnmHzFjpRpIPK3gAAET1bnyEDPnNoiTqcn75w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708383677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eFIJpFFFsfRQ4L5gWvEXyXKul2CVt6fehry7xOJUD2c=; b=qXBC39zILtAErRaosefxLHlNTzo0Tb3w5FFneoc7kbk9oNxfEDmjf5FI2jKwcdO/KiToHS T1oLbVU1+YqGTH09LoVlrI68F5JHyA+8I4MOfJKkjfne50BPHwqhKN7ScG9YYU2T7sTdeg aibAmWOKc4lbSsUG/N+w0Iyg0viO4TqrEumTwpYbp48zX81AaIWW3bFEA0J2GI0X5VmDam Se1KZyajLNOwcTxRvQCePNoL5prZZmUrTiALCpdqkul08c7G4Pwlx1qCgVC6R4k29G701B KgceafmeIlkPVg00eJArmlsc8l/wvdRA7iwMXhO6zsuD2zpWBU+DYjqpcD//Tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708383677; a=rsa-sha256; cv=none; b=N8zkRUtZGeAYcvpUyqZyToYLTzAjhsBM6la4VydmICa/VhpO/jNjSC9mcdcZ/rpZGTRRm9 NeiuHAFPy4i3AZDtQiGE3vf7+ZXp3DToiKCIpP18zzDojrNCWn27amMEJiQ1fD5Chzf8t3 G0HtXVaO1SU482dQk2FTC9EkkkY6UsBgFICF769prK3Ig/aBTKiFYn7GeE5zR00K+WNP3T iokgssY+gD1plsHFg/w9RaL94wOrTp/ivqD7zKeHQ1vf5mH+aqjexVoop10VNtrav0sA/2 ExjkfCyszL6NxuGWfESE7mrQOtjhNUMnIPP9IJ6tzTusqp4YQ/DtK0NCP5h7mg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TdyhF4pZgztrR; Mon, 19 Feb 2024 23:01:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41JN1HIu033120; Mon, 19 Feb 2024 23:01:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JN1HZO033117; Mon, 19 Feb 2024 23:01:17 GMT (envelope-from git) Date: Mon, 19 Feb 2024 23:01:17 GMT Message-Id: <202402192301.41JN1HZO033117@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Xin LI Subject: git: aea57ebcb1b0 - main - zlib: use more memory for a small deflate speedup. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aea57ebcb1b053370ea1f0e29cdc666291bc5d5e Auto-Submitted: auto-generated The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=aea57ebcb1b053370ea1f0e29cdc666291bc5d5e commit aea57ebcb1b053370ea1f0e29cdc666291bc5d5e Author: Xin LI AuthorDate: 2024-02-19 23:01:04 +0000 Commit: Xin LI CommitDate: 2024-02-19 23:01:04 +0000 zlib: use more memory for a small deflate speedup. The LIT_MEM option uses slightly more memory (for base gzip(1), about 16kiB; according to the author, about 6% for default deflate settings) for a small speedup. The performance gain is more noticeable for input data with higher entropy and less significant for data that is highly compressible, such as source code and logs. MFC after: 1 month --- sys/contrib/zlib/deflate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/zlib/deflate.h b/sys/contrib/zlib/deflate.h index 300c6ada62b8..df76fc6fc5d1 100644 --- a/sys/contrib/zlib/deflate.h +++ b/sys/contrib/zlib/deflate.h @@ -25,7 +25,7 @@ /* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at the cost of a larger memory footprint */ -/* #define LIT_MEM */ +#define LIT_MEM /* =========================================================================== * Internal compression state.