teehistorian records all inputs from the players as well as the player positions in each tick. It stores this info in a highly compressible output format (I've achived 5x compression using xz or bz2).