---
title: "Discussion on \"Why prefer the use of a collection over loop\" | Hashnode"
description: "Discussion on \"Why prefer the use of a collection over loop\". How to improve your Rails performance by 90% with a simple change"
url: "https://hashnode.com/posts/why-prefer-the-use-of-a-collection-over-loop/633e958d96ad01adcc194dba"
---

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

Discussion

# [Why prefer the use of a collection over loop](https://blog.cupofcraft.dev/why-prefer-the-use-of-a-collection-over-loop?utm_source=hashnode&utm_medium=feed)

How to improve your Rails performance by 90% with a simple change

Oct 6, 2022 · 2 min read · blog.cupofcraft.dev  
Read the article

-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#ruby](https://hashnode.com/tag/ruby)

## Written by

[Andrea Barghigiani](https://hashnode.com/@cupofcraft)

@cupofcraft · Alcamo, Italy

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

Web, Creative, Teacher

Product Engineer with more of a decade of experience, now working on careercraft.ing to help engineers all over the world to progress in their careers without losing a single win.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
