ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yakov Zhdanov <yzhda...@apache.org>
Subject Re: GridCacheAdapter#size() has O(n) complexity
Date Mon, 26 Jun 2017 09:31:01 GMT
Guys, I see little inconsistency. Imagine user does 1000 puts with near
cache enabled. Then user does some gets() and size() returns 1000 + N, more
gets() and size() is 1000 + M. This is a bit weird. Can we have nearSize()
on public API? Any thoughts here?

As far as the original issue I would not bother with validity check on
getting size and just return raw map size.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message