Make timeline rendering faster

Part of #168.