4 ms·
If you're rendering a bunch of partials in a loop, you should try rendering it as a collection instead; it's significantly faster.
by steveklabnik 14y ago
If you're rendering a bunch of partials in a loop, you should try rendering it as a collection instead; it's significantly faster.
- netghost 14y agoI know I should just go read the code, but any insight into what the difference is?
- steveklabnik 14y agoRather than all the setup and teardown work that's done for every single partial, that work can be done once for the entire collection.
- netghost 14y agoThanks Steve, that makes perfect sense.