make ptop_fast_reindex more memory efficient.