28
jkuhl
5y

"Change your algorithm"

Answers like this are why Stack Overflow almost becomes worthless when asking questions. I asked for some clarification why my code, which reads some files and outputs another, was hitting System.OutOfMemory exceptions. And that was the response I got.

"Change your algorithm"

How? In what manner should I be seeking to change my algorithm? OBVIOUSLY I SHOULD CHANGE MY ALGORITHM YOU WASTE OF OXYGEN. That was a given by the exception my program threw!

I swear to god, SO has got to be one of the most unwelcoming, condescending sites on the internet.

Comments
  • 4
    It has kind of always been that, save the very early days.

    I assume the answer to your problem is likely something in the realm of "read each file line by line and break up the operation into individual operations that write to the final output file, possibly with a few intermediary files as buffers to reduce memory pressure."
  • 0
  • 15
    Improved answer: "Change your algorithm to use less memory."
  • 2
    Sounds like you should use the downvote button.
  • 3
    @AppleLover know a good website where I can download some?
Add Comment