commit c20d8fe5972b7616c3f45873d5d7a2c7c4a12381
parent 04ccc8069750cb79fac9ac3a3b993c39eb1fd285
Author: Dan Callaghan <djc@djc.id.au>
Date: Sun, 3 May 2026 21:12:29 +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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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