16
nitnip
2y

Saw a question on SO asking why foreach was slow with big data.

The code provided was 6 nested foreachs (basically a cartesian product between an array of arrays, and 4 other arrays).

Inside, a select query and an "update or create" operation.

"But why is foreach so slow?"

Comments
  • 6
    Why can't I get 32GB on my worker?🥸 What do you mean by I should optimize my code?☝️🥸
  • 0
    "yeah! why slow?"
  • 0
    Such dumbass shouldn't become a programmer...
  • 0
    🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️
Add Comment