[clock] Transformed /clock from port to topic
Remove unnecessary memory allocation in publishing time