reduce mallocs in sweep