Could be similar to https://news.ycombinator.com/item?id=46134178 (code duplication for locality for a tiny perf gain).