In the Sitecore content tree there are like 600,000 items. But there are only 10,000 items which are publishable. It takes hours and hours to publish the content, infinite time I would say.
But when there are like only 20,000 items, it publishes the tree in 5mins.
Seems like Sitecore is going through all items whether they will be published or not. Is there a way to get rid of this to improve performance?