yanyzy commented on a change in pull request #3034: Optimize performance, 
reduce unnecessary loops
URL: 
https://github.com/apache/incubator-shardingsphere/pull/3034#discussion_r324578984
 
 

 ##########
 File path: 
sharding-proxy/sharding-proxy-transport/sharding-proxy-transport-mysql/src/main/java/org/apache/shardingsphere/shardingproxy/transport/mysql/packet/command/MySQLCommandPacketType.java
 ##########
 @@ -253,6 +256,17 @@
      * @see <a 
href="https://dev.mysql.com/doc/internals/en/com-reset-connection.html";>COM_RESET_CONNECTION</a>
      */
     COM_RESET_CONNECTION(0x1f);
+
+    /**
+     * The cache map for MySQLCommandPacketType.
+     */
+    private static final Map<Integer, MySQLCommandPacketType> 
MYSQL_COMMAND_PACKET_TYPE_CACHE = new HashMap<Integer, 
MySQLCommandPacketType>() {
 
 Review comment:
   @tuohai666 
   It's ok, i have changed it back.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to