Optimisation of nokigiri parsing