[svn] commit: r2559 - /branches/trac221b/src/bin/auth/asio_link.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jul 21 01:23:41 UTC 2010


Author: jinmei
Date: Wed Jul 21 01:23:40 2010
New Revision: 2559

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

Modified:
    branches/trac221b/src/bin/auth/asio_link.cc

Modified: branches/trac221b/src/bin/auth/asio_link.cc
==============================================================================
--- branches/trac221b/src/bin/auth/asio_link.cc (original)
+++ branches/trac221b/src/bin/auth/asio_link.cc Wed Jul 21 01:23:40 2010
@@ -64,6 +64,11 @@
     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) :




More information about the bind10-changes mailing list