diff options
author | Eric Wong <e@yhbt.net> | 2020-06-01 10:06:55 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-03 04:04:21 +0000 |
commit | dee9a7231ca1019f56eea3596f0c428769e3eac1 (patch) | |
tree | 914832a8190e5d428c7bad611b30d502e22ec45e | |
parent | 4723390cc4bb76762a9d60feecb66482caaef6a7 (diff) | |
download | public-inbox-dee9a7231ca1019f56eea3596f0c428769e3eac1.tar.gz |
smsg: remove ->bytes and ->lines methods
They're stored directly in Xapian and SQLite document data. NNTP accesses those fields directly to avoid method invocation overhead so there's no reason to waste several kilobytes for each sub.
-rw-r--r-- | lib/PublicInbox/Smsg.pm | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm index 9e363a11..a7ee2e40 100644 --- a/lib/PublicInbox/Smsg.pm +++ b/lib/PublicInbox/Smsg.pm @@ -90,10 +90,6 @@ sub from_mitem { psgi_cull(load_expand($self, $mitem->get_document)); } -# :bytes and :lines metadata in RFC 3977 -sub bytes ($) { $_[0]->{bytes} } -sub lines ($) { $_[0]->{lines} } - sub __hdr ($$) { my ($self, $field) = @_; $self->{lc($field)}; |