Browse Source

commented about local placeholders of {UDP/TCP}Endpoints.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac221b@2559 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 14 years ago
parent
commit
01d4f42cee
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/bin/auth/asio_link.cc

+ 5 - 0
src/bin/auth/asio_link.cc

@@ -64,6 +64,11 @@ IOAddress::toText() const {
     return (asio_address_.to_string());
 }
 
+// Note: this implementation is optimized for the case where this object
+// is created from an ASIO endpoint object in a receiving code path
+// by avoiding to make a copy of the base endpoint.  For TCP it may not be
+// a bug deal, but when we receive UDP packets at a high rate, the copy
+// overhead might be significant.
 class TCPEndpoint : public IOEndpoint {
 public:
     TCPEndpoint(const IOAddress& address, const unsigned short port) :