4 ms·
There are heuristics — and they improve from version to version — but they're necessarily conservative: heap allocating something which doesn't escape is a perf
by masklinn 8y ago
There are heuristics — and they improve from version to version — but they're necessarily conservative: heap allocating something which doesn't escape is a performance hit, stack-allocating something which does breaks software.