diff options
author | Eric Wong <e@80x24.org> | 2023-11-02 09:35:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-02 23:46:53 +0000 |
commit | 52cd1dd47c83f18681bab081db5041f8bfa5dfbe (patch) | |
tree | de349eef74f5db9ae493fdc9bd70abfa3d2fb89e /lib/PublicInbox/LeiStoreErr.pm | |
parent | aa8a5b0d3de5304aa56c53fd2f6717be9a44f559 (diff) | |
download | public-inbox-52cd1dd47c83f18681bab081db5041f8bfa5dfbe.tar.gz |
FDs are array indices into the kernel, anyways, so we can take advantage of space savings and speedups because the majority of FDs a big process has is going to end up in the array, anyways.
Diffstat (limited to 'lib/PublicInbox/LeiStoreErr.pm')
-rw-r--r-- | lib/PublicInbox/LeiStoreErr.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiStoreErr.pm b/lib/PublicInbox/LeiStoreErr.pm index fe4af51e..c8bc72b6 100644 --- a/lib/PublicInbox/LeiStoreErr.pm +++ b/lib/PublicInbox/LeiStoreErr.pm @@ -47,7 +47,7 @@ sub event_step { return ($!{EAGAIN} ? 0 : $self->close) if !defined($n); return $self->close if !$n; my $printed; - for my $lei (values %PublicInbox::DS::DescriptorMap) { + for my $lei (grep defined, @PublicInbox::DS::FD_MAP) { my $cb = $lei->can('store_path') // next; next if $cb->($lei) ne $self->{store_path}; emit($lei->{2} // next, $buf) and $printed = 1; |