Update number of actor, reduce memory usage.