improve publish performance