bruno-roustant commented on pull request #1998: URL: https://github.com/apache/lucene-solr/pull/1998#issuecomment-713674928
I have an idea to sample the timeout check in ExitableTermsEnum constructor. Obviously not based on the counter which is always 0 at that point, but rather based on pseudo randomness. We could check if ((System.identityHashCode(this) & TIMEOUT_CHECK_SAMPLING) == 0) before calling checkTimeoutWithSampling(). ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org