You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "NSAmelchev (via GitHub)" <gi...@apache.org> on 2026/10/19 15:25:10 UTC
[PR] IGNITE-29169 Use CopyOnWriteIntMap for rarely updated maps on cache hot paths [ignite]
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-29169 Use CopyOnWriteIntMap for rarely updated maps on cache hot paths [ignite]
Posted by "NSAmelchev (via GitHub)" <gi...@apache.org>.
NSAmelchev merged PR #13706:
URL: https://github.com/apache/ignite/pull/13706
--
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@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org