From nobody Thu Mar 21 03:49:28 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 4V0Wfw4BBdz5FhsK; Thu, 21 Mar 2024 03:49:28 +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 4V0Wfw3PWgz4MPS; Thu, 21 Mar 2024 03:49:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710992968; 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=8a7fWlD8TTpJapOq9py635K6iLs9w9qvIpb0UwE41w0=; b=uhsw7kDd527CdtfDGcGERfOTKslMuqUs4dhJRbwYaYArxe06hAl4SBNxllaLbmMEkqTUyS aB6DbdEMEge0J6dat0WbGV8XeRBdQSp6q4qKdErEjyRJg+BSg2NR5iXFc4eoba+oehcFcu X+FI5pNnciSaf6Bcf11VmgxcXV68NTdjXst1TffesQFu09z52mmUOaBTPyWFkwGavNTRhJ ZngKdApGKl1HOKHzsOCKYLCsPVnS+SUzojyF0O/S4x3gV9m7Fqc2TaR0G2Z+DTgvm3hWia agbsyaB0sUlxHpojKWuC76i7EfIcmBnIiYISjmkwe1IycE76hw+LkimgVvmzkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710992968; a=rsa-sha256; cv=none; b=V1RpkaupGihbi/Jo5HQoJvKtfSj3SueUEsisZTDw9C+Fkpxdzyg6IooczSylsfsbDKK6fq gsUx0Axwsv0X3mVeCqv+jOpOx533jmmOPkYnRBynKGYSSGh2m1H0UqWvvj7gtWxaL/2diW OnQ8MZ55I5bWtPCmqsKdEG1EABd54L4DJ4PiouNBWXGCdsBwUS0f7RnWr0XNXA67A8ZT63 SLBPhxuOxMQ++MvROR8ywKZXEsAsCOfjmzdY+hAr4Pou0dmCJ7c3vJcCJ5eucxtwtsPzku EAaAE2kkC9VPY6GYgSGZyno158p+WvCr+syFh7WHi4U3bC0MsNzxj6qE615IEA== 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=1710992968; 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=8a7fWlD8TTpJapOq9py635K6iLs9w9qvIpb0UwE41w0=; b=iousMFkHoEvghLYCwT6oict+SiGM+F+lk8ZygzEuNh9Uxkntay84BN0eURSetdVqNJy4nm 49GEUqoO69AZX8Biqm4Jq+s2n+o3eEHJeop1U3I8ntXNtXJ+y0gQs525jqonGSOicZ65KK IEn7jlmX+7OHh46T3dmC2wJzW+lbOxvYSS9gMmPATnDYlUqitzkVf2mnyvgSaWcovnMsJW IwhaZqV7gpmvmQzVOX2MzisyiZjG4ktwwOIpe2sR4Dwt+I+CxpG40TAG5sZqtzUuVz+DHX 9QGsIyBN/lcTaVVPM6lc5399asIM266Spd1LGZpN6xGEy6f3dTGMQyO3CE9cIw== 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 4V0Wfw30X5zK4n; Thu, 21 Mar 2024 03:49:28 +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 42L3nSaj072105; Thu, 21 Mar 2024 03:49:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42L3nS7X072102; Thu, 21 Mar 2024 03:49:28 GMT (envelope-from git) Date: Thu, 21 Mar 2024 03:49:28 GMT Message-Id: <202403210349.42L3nS7X072102@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: 984caafec11e - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 984caafec11e2b9b044d23dda23a67270f6108ea Auto-Submitted: auto-generated The branch stable/14 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=984caafec11e2b9b044d23dda23a67270f6108ea commit 984caafec11e2b9b044d23dda23a67270f6108ea Author: Xin LI AuthorDate: 2024-02-19 23:01:04 +0000 Commit: Xin LI CommitDate: 2024-03-21 03:49: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. (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.