You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/10/10 12:49:09 UTC

[GitHub] [dubbo] icodening opened a new pull request, #10728: issue 10727: optimize performance for `dubbo` protocol

icodening opened a new pull request, #10728:
URL: https://github.com/apache/dubbo/pull/10728

   与Triple协议性能优化类似,同样使用了缓冲队列来大幅度提高dubbo协议的性能问题
   ref #10727 #10558 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on a diff in pull request #10728: issue 10727: optimize performance for `dubbo` protocol

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on code in PR #10728:
URL: https://github.com/apache/dubbo/pull/10728#discussion_r995291685


##########
dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/Netty4BatchWriteQueue.java:
##########
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.dubbo.remoting.transport.netty4;
+
+import io.netty.channel.Channel;
+import io.netty.channel.ChannelFuture;
+import io.netty.channel.ChannelPromise;
+import io.netty.channel.EventLoop;
+import org.apache.dubbo.common.BatchExecutorQueue;
+
+/**
+ * netty4 batch write queue
+ *
+ * @author icodening
+ * @date 2022.10.11

Review Comment:
   pls remove `author` and `date` 



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ merged pull request #10728: issue 10727: optimize performance for `dubbo` protocol

Posted by GitBox <gi...@apache.org>.
AlbumenJ merged PR #10728:
URL: https://github.com/apache/dubbo/pull/10728


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] icodening commented on pull request #10728: issue 10727: optimize performance for `dubbo` protocol

Posted by GitBox <gi...@apache.org>.
icodening commented on PR #10728:
URL: https://github.com/apache/dubbo/pull/10728#issuecomment-1278452978

   环境信息:
   * 6C 16G 
   * mac OS 10.15.7
   * jdk8
   ````
   优化后:dubbo/fastjson2
   Benchmark           Mode  Cnt      Score       Error  Units
   Client.createUser  thrpt    3  78492.180 ± 52746.055  ops/s
   Client.existUser   thrpt    3  93525.607 ± 36409.882  ops/s
   Client.getUser     thrpt    3  83727.914 ±  4138.831  ops/s
   Client.listUser    thrpt    3  32823.162 ± 26790.908  ops/s
   ````
   ````
   优化前:3.1.1 dubbo/fastjson2
   Benchmark           Mode  Cnt      Score       Error  Units
   Client.createUser  thrpt    3  62864.959 ± 18826.824  ops/s
   Client.existUser   thrpt    3  72422.411 ± 39122.440  ops/s
   Client.getUser     thrpt    3  62999.750 ± 15666.732  ops/s
   Client.listUser    thrpt    3  33994.761 ± 13043.967  ops/s
   ````
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] icodening commented on a diff in pull request #10728: issue 10727: optimize performance for `dubbo` protocol

Posted by GitBox <gi...@apache.org>.
icodening commented on code in PR #10728:
URL: https://github.com/apache/dubbo/pull/10728#discussion_r995292852


##########
dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/Netty4BatchWriteQueue.java:
##########
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.dubbo.remoting.transport.netty4;
+
+import io.netty.channel.Channel;
+import io.netty.channel.ChannelFuture;
+import io.netty.channel.ChannelPromise;
+import io.netty.channel.EventLoop;
+import org.apache.dubbo.common.BatchExecutorQueue;
+
+/**
+ * netty4 batch write queue
+ *
+ * @author icodening
+ * @date 2022.10.11

Review Comment:
   OK 



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org