Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

misc doc fixes

  • Loading branch information...
commit 7267bd76a48500c5f384c43ebc64701a689e32e3 1 parent 6fb7c79
@nothingmuch authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/Data/Stream/Bulk/Util.pm
View
7 lib/Data/Stream/Bulk/Util.pm
@@ -16,6 +16,7 @@ use Sub::Exporter -setup => {
exports => [qw(nil bulk cat filter unique)],
};
+# use constant nil => Data::Stream::Bulk::Nil->new;
sub nil () { Data::Stream::Bulk::Nil->new }
sub bulk (@) { return @_ ? Data::Stream::Bulk::Array->new( array => [ @_ ] ) : nil }
@@ -89,11 +90,13 @@ Calls C<filter> on $stream with the provided filter.
Filter the stream to remove duplicates.
-Note that this may potentially scales to O(k) where k is the number of distinct
-items.
+Note that memory use may potentially scale to O(k) where k is the number of
+distinct items, because this is implemented in terms of a seen hash.
In the future this will be optimized to be iterative for sorted streams.
+References are keyed by their refaddr (see L<Hash::Util::FieldHash/id>).
+
=back
=cut

0 comments on commit 7267bd7

Please sign in to comment.
Something went wrong with that request. Please try again.