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
{{ message }}
Repository navigation
Replace the map<Long,Object> in dubbo with longObjectMap #2882
this work make sense, but do we have a official way to measure performance improvement? we don't have benchmark running in CI or other stable platform.
good question. At the moment we really lack the internal benchmark. I think you can add a benchmark to the module. The performance of the new submission benchmark cannot be significantly lower than the previous benchmark results. What do u think?
@carryxyh do you mean that the LongObjectHashMap is io.netty.util.collection.LongObjectHashMap<V>? I just take a look at the usage of dubbo existing code, the Map<Long, Object> almost are java.util.concurrent.ConcurrentHashMap,but the LongObjectHashMap is not Thread Safe . How do think about it ?
@lexburner
I think we should have a benchmark about the sync long object map and concurrent map.
Personally think the concurrent map is better, but we should have a benchmark about this two cases.
The person who claimed this task will go to the benchmark, we have already passed the mail.
Another thing, maybe my description is problematic, we are going to replace longobjectmap and other maps such as intobjectmap. Not just longobjectmap.
And the longobjectmap and intobjectmap has many impls (not just in netty). Could u give some ideas about this?
@lexburner I think your comments are very direct. At present, the stand-alone test, longObjectMap and hashMap in the number of puts reached a million level, the performance gap is very large, you said the thread safety problem, concurrent performance and memory testing, it is indeed should consider and come up with accurate evidence to support. There are also tests of actual scenes that are more convincing.
Activity
htynkn commentedon Dec 4, 2018
this work make sense, but do we have a official way to measure performance improvement? we don't have benchmark running in CI or other stable platform.
carryxyh commentedon Dec 4, 2018
good question. At the moment we really lack the internal benchmark. I think you can add a benchmark to the module. The performance of the new submission benchmark cannot be significantly lower than the previous benchmark results. What do u think?
water-coder commentedon Dec 12, 2018
for this issue
I want to do this job of using longObjectMap replacing LongObjectMap.
I am willing to take this task and I will start doing it.
bpaull1981 commentedon Dec 12, 2018
carryxyh commentedon Dec 13, 2018
@bpaull1981
Hi, seems like @water-coder has claimed this job.
@water-coder I'd like to help u to finish this.
water-coder commentedon Dec 13, 2018
@carryxyh
OK,thx. I will try my best to do this.
lexburner commentedon Dec 19, 2018
@carryxyh do you mean that the LongObjectHashMap is
io.netty.util.collection.LongObjectHashMap<V>? I just take a look at the usage of dubbo existing code, the Map<Long, Object> almost arejava.util.concurrent.ConcurrentHashMap,but the LongObjectHashMap is not Thread Safe . How do think about it ?carryxyh commentedon Dec 19, 2018
@lexburner
I think we should have a benchmark about the sync long object map and concurrent map.
Personally think the concurrent map is better, but we should have a benchmark about this two cases.
The person who claimed this task will go to the benchmark, we have already passed the mail.
Another thing, maybe my description is problematic, we are going to replace longobjectmap and other maps such as intobjectmap. Not just longobjectmap.
And the longobjectmap and intobjectmap has many impls (not just in netty). Could u give some ideas about this?
lexburner commentedon Dec 19, 2018
water-coder commentedon Dec 19, 2018
@lexburner I think your comments are very direct. At present, the stand-alone test, longObjectMap and hashMap in the number of puts reached a million level, the performance gap is very large, you said the thread safety problem, concurrent performance and memory testing, it is indeed should consider and come up with accurate evidence to support. There are also tests of actual scenes that are more convincing.