You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Marios Trivyzas (Jira)" <ji...@apache.org> on 2022/07/30 13:42:00 UTC

[jira] [Commented] (LUCENE-10423) Remove uses of wall-clock time in codebase

    [ https://issues.apache.org/jira/browse/LUCENE-10423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17573266#comment-17573266 ] 

Marios Trivyzas commented on LUCENE-10423:
------------------------------------------

Should [https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/time/StopWatch.html] be used to measure elapsed time?

> Remove uses of wall-clock time in codebase
> ------------------------------------------
>
>                 Key: LUCENE-10423
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10423
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Priority: Major
>
> Followup to LUCENE-10421
> Code in the library shouldn't rely on wall-clock time. If you look at all the places doing this, they are basically all bad news.
> Most tests doing this are "iterating for some amount of wall-clock time" which causes them to instead just be non-reproducible. These should be changed to use a fixed number of loop iterations instead.
> It would really be great to ban this stuff in forbidden apis. It is even in the configuration file, just currently commented out.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org