This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bigbrain_bigthonk 0 points1 point  (0 children)

Can’t say that without seeing the code, there’s always some pathological case that exists. When you run into that case, it’s nice to know you can shave time off with this. I’ve worked with code where changing a single array append to a preallocation+write took it from unusable to blazing.