DEV Community

Discussion on: Processing One Billion Rows in PHP!

Collapse
 
ravavyr profile image
Ravavyr

This was a pretty cool write up, giving people an idea of how to approach optimizing their code. really enjoyed that.
A couple of questions:

  • what is your hardware [RAM? CPU?]
  • have you tried outputting the processed code [i'm pretty sure rendering a billion rows would crash just about any browser?]
Collapse
 
realflowcontrol profile image
Florian Engelhardt • Edited

Hey Ravavyr,
glad that you liked it!
I ran the code on M1 MacBook Pro with 64 GB of Ram.
The code just outputs to stdout which on invocation I do redirect to some file on disk.

php run.php > out.json
Enter fullscreen mode Exit fullscreen mode

Hope this helps 🖖