---
title: "Discussion on \"Right Sizing Collected Streams\" | Hashnode"
description: "Discussion on \"Right Sizing Collected Streams\". Battle On / Round 1 : collect(Collectors.toList()) vs. forEach(result::add)"
url: "https://hashnode.com/posts/right-sizing-collected-streams/65beb7e38b39ecaae81ef622"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Right Sizing Collected Streams](https://hashnode.pnambic.com/right-sizing-collected-streams?utm_source=hashnode&utm_medium=feed)

Battle On / Round 1 : collect(Collectors.toList()) vs. forEach(result::add)

Feb 3, 2024 · 7 min read · hashnode.pnambic.com  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#stream](https://hashnode.com/tag/stream)
-   [#benchmark](https://hashnode.com/tag/benchmark)
-   [#memory-management](https://hashnode.com/tag/memory-management)

## Written by

[Lee Carver](https://hashnode.com/@leeca)

@leeca

  
[View profile](https://hashnode.com/@leeca)

Software Engineer

Experienced Software Engineer. User interfaces, distributed services, software tools. Software development and operation at scale in multiple application domains.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
