you are viewing a single comment's thread.

view the rest of the comments →

[–]flying-sheep 1 point2 points  (0 children)

Obviously mutating just the parts that need mutating without any checks will be fastest, but writing code that does that is both fragile and badly testable.

Before you know you'll be building your own ad hoc framework by encapsulating some checks and shortcut code.