How to use generators to beat memory bloat

Korvin Szanto (16.Aug.2018 at 15:00, 50 min)
Talk at Southeast PHP (English - US)

Rating: 5 of 5

Memory usage is something that we as developers have to be aware of. Ever debugging a memory issue and find that your once small dataset has ballooned out of proportion? And instead of dealing with the issue, you opt for upping the memory limit? Iterators can be the answer but they require a lot of code and can be very difficult to understand at a glance. Thankfully since PHP 5.5 Generators help us create and manage what would be complex iterators with simple syntax sugar. In this talk I will go over some of the ways you can implement generators and cure your memory bloat.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= nine minus six

Comments

Rating: 5 of 5

17.Aug.2018 at 06:13 by Roger Creasy (12 comments) via Web2 LIVE

Great talk! Very good explanation of a somewhat complex topic. There is a ton of knowledge crammed into this 45 minute talk. But, Korvin did a terrific job presenting and explaining it. I learned much.

Rating: 5 of 5

17.Aug.2018 at 13:22 by Julian Canepa (11 comments) via Web2 LIVE

Solid talk. Props to Korvin for live programming, his demo really cemented the concepts for me. I can't wait to find places to apply the principles he introduced.

© Joind.in 2018