I think compact.toArray syntax gives same performance here ?