Add forgotten break

Operating Systems / OSv - Nadav Har'El [cloudius-systems.com] - 21 May 2013 15:14 UTC

In the allocation tracker, not only did I use a dog-slow linear search, I forgot to stop on the first empty spot, and actually used the last empty spot... Add the missing break, which made leak detection 10% faster.

A better implementation would be preferable, but this is a low hanging fruit

8ffe45b Add forgotten break
core/alloctracker.cc | 1 +
1 file changed, 1 insertion(+)

Upstream: github.com


  • Share