Well, from the source code snippets `filter` uses ...
# announcements
r
Well, from the source code snippets
filter
uses
ArrayList
as the destination, similar to what you've done yourself, so underlying complexity should be the same. But I'm not 100% sure I'm reading that correctly.