after refactoring

./app  0.00s user 0.00s system 64% cpu 0.005 total

effect is dramatic