diff options
author | Eric Wong <e@80x24.org> | 2015-09-30 21:00:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-30 21:09:18 +0000 |
commit | 709a1979302ef5dbb40babb84821b079868490a1 (patch) | |
tree | d38f9785c0ffebc1f36e3d7916ca75467e2fe8e9 /lib/PublicInbox/Msgmap.pm | |
parent | ebf564bad83e0c160b5088c7aaa9862d47735226 (diff) | |
download | public-inbox-709a1979302ef5dbb40babb84821b079868490a1.tar.gz |
It doesn't actually give performance improvements unless we use types with "my", but we don't do that. We'll only continue using fields with Danga::Socket-derived classes where they're required.
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r-- | lib/PublicInbox/Msgmap.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm index f2857908..8a34e7e0 100644 --- a/lib/PublicInbox/Msgmap.pm +++ b/lib/PublicInbox/Msgmap.pm @@ -4,7 +4,6 @@ package PublicInbox::Msgmap; use strict; use warnings; -use fields qw(dbh mid_insert mid_for num_for num_minmax); use DBI; use DBD::SQLite; @@ -23,8 +22,7 @@ sub new { sqlite_use_immediate_transaction => 1, }); $dbh->do('PRAGMA case_sensitive_like = ON'); - my $self = fields::new($class); - $self->{dbh} = $dbh; + my $self = bless { dbh => $dbh }, $class; if ($writable) { create_tables($dbh); |