In C, C++ after you compile your code you can look at the generated assembly to see what kind of optimizations the compiler did to your code(like optimize away a loop). Is there a Java equivalent?
Up to byte-code included, that's compile-time and you can see what javac did by examining the bytecode. Seeing what JIT does is a lot more complicated, if possible
@NathanOliver Yep, that's the only way to measure. Benchmark it and see what it does on a million iterations
There were lots of question on java-8 some time ago because people thought they were measuring by executing the code once or twice and not doing really anything with the output they were having
What I hate is the compiler is so good at optimizing that you actually have to go out of your way to force it not to when you need to benchmark some things. At times it goes "oh your not using the result at all, I'll just get rid of all that code since you really don't need it".
Usually when I look at normal code I'm pretty good at realizing exactly what it does. When I have something recursive for some reason I need much longer to parse what it actually does and how to fix problems in it
I use tail recursion... I use tail recursion... I use tail recursion... I use tail recursion... I use tail recursion... I use tail recursion... I use tail recursion... I use tail recursion... I use tail recursion... message too long
@Tunaki "not closed as a duplicate", check. "has a score of 0 or less", check. "is not locked", check. "has no answers with a score > 0", check. "has no accepted answer", check. "has no pending reopen votes", check. "has not been edited in the past 9 days", check.
@Tunaki The system will automatically delete unlocked, unanswered questions with score of zero (or one if the owner is deleted), fewer than 1.5 views per day on average, and fewer than two comments after 365 days. it has answers
@Bathsheba I agree. I think the code optimization is the most rational explanation. Which is really funny as I was just talking in chat about how you have to force the compiler to stop doing that. — NathanOliver2 mins ago
@Tunaki I wouldn't say preventing other people from editing it. It's simply flagged for mod attention, and wont clear on edit. IMO, just adds more work for the mods
@FrankerZ Technically, if there are pending NAA flags, yes, you don't even need to reject. But I also do it because I want the user to learn they shouldn't do that (and not receive +2)
I thought the thing with VQL queue was that if the post was edited (inside or outside of the queue) the review item was nullified. Is that still the case?
hmm. I just saw a post that has a reopen vote on it when it was dupe closed by community. I wonder if reopen voting should be disallowed in those cases since the OP agrees the linked to question(s) answer his question.