Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Done
-
3.1.0
-
None
-
None
Description
This commit creates a significant extra cost in the critical path (which is run sequentially) of Ratis appendTransaction.
This seems to be a premature optimization. One or two instances of TermIndex per request are basically nothing (unless we create hundreds/thousands of them per request). Short-lived POJO like this are the best to be dealt with by java GC/heap.
More details are the parent Jira RATIS-2129.
Attachments
Attachments
Issue Links
- is caused by
-
RATIS-2099 Cache TermIndexImpl instead of using anonymous class
- Resolved
- relates to
-
RATIS-2101 Move TermIndex.PRIVATE_CACHE to Util.CACHE
- Resolved
- links to