From 63ede74cfe5817642a4211419ae2bd3838260237 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 2 May 2014 20:28:43 +0000 Subject: reduce copies by passing string refs to Email::MIME This should reduce data copies and memory usage, according to Email::Simple documentation. --- lib/PublicInbox/Feed.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Feed.pm') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index a507cda1..09eb2fca 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -299,7 +299,7 @@ sub dump_html_line { sub do_cat_mail { my ($git, $path) = @_; my $str = $git->cat_file("HEAD:$path"); - Email::MIME->new($$str); + Email::MIME->new($str); } 1; -- cgit v1.2.3-24-ge0c7