DEV Community

Discussion on: Processing One Billion Rows in PHP!

Collapse
 
ivanzanev profile image
Ivan Zanev

Great step-by-step optimization. Two things coming to mind: if you use explode or a simple for loop to iterate through characters, that might cut off some cycles. Also, I'm wondering about the ksort() since it sorts by cities, maybe there can be an array and then just iterate through the sub-arrays?