
Get better perfs using the lazy method in Ruby
Lazy enumerators were added to Ruby in version 2.0. Here is a simple use-case where it can be useful and bring a performance improvement.

Feb 18, 2020
Simon Courtois
Simon Courtois
PDFMonkey helps companies automate their PDF generation.
Manage your templates.
Insert dynamic data.
Call a simple REST API.
Get 300 free PDF a month.
Get better perfs using the lazy method in Ruby
Lazy enumerators were added to Ruby in version 2.0. Here is a simple use-case where it can be useful and bring a performance improvement.