From nobody Thu Mar 21 03:50:26 2024 X-Original-To: dev-commits-src-branches@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 4V0Wh30J87z5FhqT; Thu, 21 Mar 2024 03:50:27 +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 4V0Wh26rSpz4N3y; Thu, 21 Mar 2024 03:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710993027; 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=8aJlHgeN+IwPRuhQVlTWf9lbM1Ztp8n32mJzJU+jPmg=; b=JAVi9jTuDpDED73G/GIFXJtg9QlKmRmXWAZjz5jgmK5ELIkLCE0gY+Rn31Yv72QVYiSZw9 sh3JBpXewhkOdsuvCr9p5nCnGAI2x6AgClTva/IcMrNV4/T250nw399JYci/EPSvUssNIW 6ln+J4U4LZfwz+D727J+O8nhb32GCS4On6KCQRlMyS58oMvPD8XPeg2lLhG6mhvojnyUsB dKxXhb/KMDvPFGgwMIJRCyNcBwerqkRzrUf5KrVay5mxlq0JrXap27DKgqbsXjVxk8uPme 6Z3Xupjkzv8xd55sDhTkcvHHN5LZS/NIy7pMAc7YJ2JzHJVtd15PHQjttArztg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710993027; a=rsa-sha256; cv=none; b=TiDle21pUjUjQi86MylNW8RmTQ7M9cDjtGDW3BuZoGBUeknHOGwsDVnWLxge2PwSiymHzU lucbxeDnu1MfrQJXUA3o7pAZvBlaO7VrsFSB69fWprAHUhpnKzgUVgfceEKRhBvRdGWr2Q qTD/TNgd3zeJlnEViTWkYKG1kTadH7gFKLqD7+UnDqF8ZA/178H/C75NK4QNVIKnCaln6S VxTl6y7mNqp7RBDBZuuOaYlthS44gMZn1ZVjInXhUn2t55CtPmaTVuIehqKqxHqvwUUzuF Wrt8XVw77NCReqvQahgZPSmaQ9zINUCCfAH6hFoY5VopECXIQxI44+fhGEXYvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710993027; 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=8aJlHgeN+IwPRuhQVlTWf9lbM1Ztp8n32mJzJU+jPmg=; b=u4KN9opUUPJfHCc4HrNbte6YZU2fWR7wX8N6HzaG7BqCXbiqYrWn+THdAz7tcbeIiuqcRw vUB0DcDnNUDVdO4RmqMVZlhFO1WVqIipxljIDj3Hggmb1ukeUELypjQaiQsNAAlJsx16WK qiHoJWjhsSTOc//NSid/Rn1w+do/AtP8CdXklwavjh35liRWSJ899Uw/j0d8nbWUikc/8s KSnBHPSyAB3qovQiCgBKywsAoYnQUlwFH5k3WcMGehHob9abke3ULlU/ZglFrEBvP5uqWj wtHzzxwSv0Oi9T7iXYC46YBGozVl58N5g3+ICEZx36DJtnRvEOyFWZt0mnqVwg== 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 4V0Wh26SCRzJMV; Thu, 21 Mar 2024 03:50:26 +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 42L3oQ0U080966; Thu, 21 Mar 2024 03:50:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42L3oQ2x080963; Thu, 21 Mar 2024 03:50:26 GMT (envelope-from git) Date: Thu, 21 Mar 2024 03:50:26 GMT Message-Id: <202403210350.42L3oQ2x080963@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Xin LI Subject: git: 66844fdbaea0 - stable/13 - zlib: use more memory for a small deflate speedup. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 66844fdbaea091e732c5839791a0f85a32379518 Auto-Submitted: auto-generated The branch stable/13 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=66844fdbaea091e732c5839791a0f85a32379518 commit 66844fdbaea091e732c5839791a0f85a32379518 Author: Xin LI AuthorDate: 2024-02-19 23:01:04 +0000 Commit: Xin LI CommitDate: 2024-03-21 03:50:02 +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. (cherry picked from commit aea57ebcb1b053370ea1f0e29cdc666291bc5d5e) --- 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.