core/scale: optimise nearest-neighbour scaling