You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configure() method gets called from in TcpClient#connect with every single request. Calling configure() causes too much of BootStrap cloning also other setup to be done again and again. When connection pool is in use, is there a specific reason to keep running configuration with each request? For instance, for the below code example with max 10 connections in pool, I see TcpUtils.updatePort keeps getting called with every request:
Please see the JFR snapshot. This is just one code path. There is quite bit of garbage created with AbstractBootstrap.copiedMap and more, because configure keeps getting called in connect():
If you can provide details about reasoning, I will very much appreciate. If not done on purpose, I will be happy to contribute if you can provide some suggestions.
Reactor version(s) used: 0.9.2-RELEASE
The text was updated successfully, but these errors were encountered:
The
configure()
method gets called from inTcpClient#connect
with every single request. Callingconfigure()
causes too much ofBootStrap
cloning also other setup to be done again and again. When connection pool is in use, is there a specific reason to keep running configuration with each request? For instance, for the below code example with max 10 connections in pool, I seeTcpUtils.updatePort
keeps getting called with every request:And here is the mock service:
Please see the JFR snapshot. This is just one code path. There is quite bit of garbage created with
AbstractBootstrap.copiedMap
and more, becauseconfigure
keeps getting called inconnect()
:If you can provide details about reasoning, I will very much appreciate. If not done on purpose, I will be happy to contribute if you can provide some suggestions.
The text was updated successfully, but these errors were encountered: