]
Tristan Tarrant updated ISPN-10485:
-----------------------------------
Fix Version/s: 10.0.1.Final
(was: 10.0.0.Final)
BoundedSegmentedDataContainer.removeSegments is slow
----------------------------------------------------
Key: ISPN-10485
URL:
https://issues.jboss.org/browse/ISPN-10485
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 10.0.0.Beta5, 9.4.16.Final
Reporter: Dan Berindei
Priority: Major
Fix For: 10.0.1.Final
{{BoundedSegmentedDataContainer.removeSegments}} iterates over the {{evictionCache}}
entries (through the {{entries}} map) and computes the segment for each entry, then
deletes the entry if its segment is one of the removed segments. Computing the segment of
many entries can be expensive, so it would be better to remove the entries from
{{evictionCache}} by iterating over the already-segmented maps (before removing them).