Use dynamic size for treesieve