[GitHub] [lucene] jpountz commented on pull request #816: LUCENE-10519: Improvement for CloseableThreadLocal

2022-04-27 Thread GitBox
jpountz commented on PR #816: URL: https://github.com/apache/lucene/pull/816#issuecomment-221948 > IMHO, Elasticserach should use fixed size threadpools (there can be many threads in it, the problem is huge pool that spawns new threads all the time and discards them because they are

[GitHub] [lucene] jpountz commented on pull request #816: LUCENE-10519: Improvement for CloseableThreadLocal

2022-04-27 Thread GitBox
jpountz commented on PR #816: URL: https://github.com/apache/lucene/pull/816#issuecomment-1110954677 Maybe another option would be to get rid of these threadlocals. We're relying less on them than we used too, e.g. doc values readers are no longer cached in threadlocals since we moved to