Description
Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
Without this patch it costs 4000ns, with this patch it costs 1600ns
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-8773 Improve Server#getRemoteAddress by utilizing Server.Connection.hostAddress
- Open