szetszwo commented on PR #1126: URL: https://github.com/apache/ratis/pull/1126#issuecomment-2258899751
As reported by @jojochuang in RATIS-2099, there were a lot of `TermIndex$1` objects,  It seems there are multiple objects created for the same value of `TermIndex`. If we have a cache, we make sure there is only one object for one value. > You already create the TermIndex instance ... Since the instance is short live, it will be gc'ed as young gen instead of promoting to old gen. -- 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]
