You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (Updated) (JIRA)" <ji...@apache.org> on 2011/11/14 10:02:51 UTC

[jira] [Updated] (LUCENE-3269) Speed up Top-K sampling tests

     [ https://issues.apache.org/jira/browse/LUCENE-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shai Erera updated LUCENE-3269:
-------------------------------

    Attachment: LUCENE-3269.patch

Patch introduces the following:
* HashMap<Integer, SearchTaxoDirPair> which is initialized in beforeClass and maps a partition size to the pair of Directories.
* initIndex first checks the map for the partition size, and creates the indexes only if no matching pair is found.

The sampling tests do not benefit from that directly, as they only run one test method, however, if they will run in the same JVM, then they will reuse the already created indexes.

Patch is against 3x and seems trivial, so I intend to commit this later today or tomorrow if there are no objections.
                
> Speed up Top-K sampling tests
> -----------------------------
>
>                 Key: LUCENE-3269
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3269
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: modules/facet
>            Reporter: Robert Muir
>             Fix For: 3.5, 4.0
>
>         Attachments: LUCENE-3269.patch, LUCENE-3269.patch, LUCENE-3269.patch, LUCENE-3269.patch
>
>
> speed up the top-k sampling tests (but make sure they are thorough on nightly etc still)
> usually we would do this with use of atLeast(), but these tests are somewhat tricky,
> so maybe a different approach is needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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