From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id 31FE7218208; Sun, 19 Jul 2026 18:11:16 +1000 (AEST) Date: Sun, 19 Jul 2026 18:11:19 +1000 To: sup-commits@supmua.dev Subject: [sup.git] 04/04: don't fix_encoding! in Message#indexable_body MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <178444867564.48613.6024460618149236020@bl2.djc.id.au> References: <178444867564.48613.6024460618149236020@bl2.djc.id.au> Thread-Index: AQAAEjRWR13r9gi1SqaMS5qnqIyKpA== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: c20d8fe5972b7616c3f45873d5d7a2c7c4a12381 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20260719081116.31FE7218208@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/c20d8fe5972b7616c3f45873d5d7a2c7c4a12381.html commit c20d8fe5972b7616c3f45873d5d7a2c7c4a12381 Author: Dan Callaghan AuthorDate: Sun May 3 21:12:29 2026 +1000 don't fix_encoding! in Message#indexable_body The message chunks are already properly encoded so calling fix_encoding! again on every chunk is just wasting CPU time. --- lib/sup/message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/message.rb b/lib/sup/message.rb index 72921ac5..35f78256 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -334,7 +334,7 @@ EOS end def indexable_body - indexable_chunks.map { |c| c.lines }.flatten.compact.map { |l| l.fix_encoding! }.join " " + indexable_chunks.map { |c| c.lines }.flatten.compact.join " " end def indexable_chunks