Parallel space saving on multi- and many-core processors