←back to thread

204 points mfiguiere | 1 comments | | HN request time: 0.211s | source
Show context
Traubenfuchs ◴[] No.43539464[source]
I would like to see some realistic example scenarios where this could actually lead to a speedup and how much it actually speeds up.
replies(1): >>43539727 #
1. kelnos ◴[] No.43539727[source]
The article mentions one: const folding. I don't think we need a benchmark to suggest that could mean a performance improvement in some cases.

Regardless, to me this isn't about performance, this is about "integrity" (to use the same term as in the JEP): consumers of my library should not be mucking about in private implementation details, and then inevitably complaining about problems to me when something breaks. If you need a feature that I don't expose, ask for it (or better yet, submit a patch).

Sure, I've used reflection to modify library internals before, but I recognize that whenever I do that I'm inviting a maintenance headache into my world. But some people just think things should always work, even when they are breaking them.