facebook / time

Meta's Time libraries
Apache License 2.0
592 stars 74 forks source link

avoid creating net.IP in ptp4u server #373

Closed abulimov closed 2 months ago

abulimov commented 2 months ago

Summary: Simple optimization. Instead of creating a net.IP from SockAddr, and then creating a SockAddr from this IP, just with different port, we simply copy the address and set a new port value.

Reviewed By: leoleovich

Differential Revision: D58814643

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D58814643

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D58814643

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D58814643

facebook-github-bot commented 2 months ago

This pull request has been merged in facebook/time@4db09adcc1ec9ae3b6dda1dfcf41db77ca89b246.