Sequences vs Collections

Sequences vs Collections Introduction Do you often work on large collections with tons of transformations required? You have to know how to improve the performance. Collections New collection is created after each transformation Good for small list with low amount of transformations needed Transformations are executed on whole collection Non-Lazy Sequences Creates TransformingSequence instead of new collections Good for large list with a lot of transformations needed Transformations are executed on each element Lazy Performance Code The task: Cleanup those urls....

November 8, 2023 · 3 min · Konrad Rutkowski