diff options
author | Eric Wong <e@80x24.org> | 2016-10-05 23:47:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-10-05 23:52:54 +0000 |
commit | 770c3c93b8a6a0db9e2152a67bccb257fa7c0233 (patch) | |
tree | 00bcea4587be92d287b670381cc87f672a885b80 /lib/PublicInbox/View.pm | |
parent | 712b8bb3a61cc261a4b8c1bfdb6e39f40cee3188 (diff) | |
download | public-inbox-770c3c93b8a6a0db9e2152a67bccb257fa7c0233.tar.gz |
It doesn't buy us much and copying to a new array is slower; but probably not measurable in real-world use.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 748e3910..7554d54f 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -259,7 +259,7 @@ sub _th_index_lite { sub walk_thread { my ($th, $ctx, $cb) = @_; - my @q = map { (0, $_) } $th->rootset; + my @q = map { (0, $_) } @{$th->{rootset}}; while (@q) { my $level = shift @q; my $node = shift @q or next; @@ -291,7 +291,7 @@ sub stream_thread ($$) { my ($th, $ctx) = @_; my $inbox = $ctx->{-inbox}; my $mime; - my @q = map { (0, $_) } $th->rootset; + my @q = map { (0, $_) } @{$th->{rootset}}; my $level; while (@q) { $level = shift @q; |