top | item 29604085

(no title)

clon | 4 years ago

You would still be doing the job of concatenating together the error message, possibly rendering some complex objects to a string, that is then fed to the no-op. The point parent was making is that there is also a performance aspect to this, in addition to the security aspect.

discuss

order

chrisseaton|4 years ago

> You would still be doing the job of concatenating together the error message, possibly rendering some complex objects to a string, that is then fed to the no-op.

Why would you still do be doing that work? If a value goes into a no-op, then the value isn't computed. (In theory - I'm sure it doesn't always work out 100% of the time in practice.)

christophilus|4 years ago

Unless the JVM is sure the logic is not effectful, it couldn’t eliminate it.