NSAmelchev opened a new pull request, #13706:
URL: https://github.com/apache/ignite/pull/13706

   Several int-keyed maps read on the cache operation path and updated only on 
cache start/stop
   still pay for concurrent writes on every read: 
`GridDhtLocalPartition.cacheMaps` and
   `CacheDataStoreImpl.cacheSizes` take a read-write lock on each access, 
`DataRegionMetricsImpl.cacheGrpMetrics`
   is a hand-written copy-on-write map with its own lock, 
`CacheObjectBinaryProcessorImpl.affKeyFields`
   boxes the type ID on each lookup.
   
   They now use `CopyOnWriteIntMap` (IGNITE-29099), which is designed for this 
read-mostly case.
   `GridCacheContext.cacheIdBoxed()` is removed as no longer needed, 
`CopyOnWriteIntMap.computeIfAbsent`
   gets a lock-free fast path.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to