Skip to content

Conversation

@SamuelBussmann
Copy link

@SamuelBussmann SamuelBussmann commented Jul 18, 2024

Based on #3170 Track event listeners keyed by type to allow earlier event firing veto

This provides the following improvements:

  • No deadlock on recursive cache modifications if no listener is registerd for those events
  • Improved performance when listeners are used

Perf:
Testcase: 20k add(),get(),udate(),get(),remove() with a NoOp Listener on Removes

-> Baseline rev_ehcache=3.10.8

  • test no_listener ended average duration was 20ms
  • test unordered_asynch ended average duration was 45ms
  • test unordered_synch ended average duration was 1411ms
  • test ordered_asynch ended average duration was 59ms
  • test ordered_synch ended average duration was 1418ms

-> MR rev_ehcache =3.10_event-firing-veto

  • test no_listener average duration was 18ms
  • test unordered_asynch average duration was 36ms <- 50% overhead to submit to ExecutorService?
  • test unordered_synch average duration was 21ms
  • test ordered_asynch average duration was 38ms
  • test ordered_synch average duration was 594ms

@SamuelBussmann
Copy link
Author

Can you retrigger the test pipelines? locally the test runs successful and it timed out on your infrastructure

@SamuelBussmann
Copy link
Author

Hello
It's great to see the renewed activity and releases.
Is there a chance and possibly a timeline that this MergeRequest or a different fix for the original issue can be merged?

@SamuelBussmann SamuelBussmann force-pushed the event-firing-veto branch 2 times, most recently from 1b20dd0 to 0af1eb9 Compare September 17, 2025 19:10
Fixes ehcache#3169 : Track event listeners keyed by type to allow earlier event
firing veto ehcache#3170
…id submit

delay

Signed-off-by: Samuel Bussmann
Signed-off-by: Samuel Bussmann
Signed-off-by: Samuel Bussmann
Signed-off-by: Samuel Bussmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant