Publishing components and styles is very slow, sometimes taking hours

Publishing components and styles is very slow, sometimes taking hours, For example Antdesign、TDeisgn。。。How to solve this problem?