accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-3274) MinorCompactor repeatedly toString()'s outputFile
Date Thu, 31 Dec 2015 06:19:49 GMT

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

Josh Elser updated ACCUMULO-3274:
---------------------------------
    Fix Version/s: 1.6.5

> MinorCompactor repeatedly toString()'s outputFile
> -------------------------------------------------
>
>                 Key: ACCUMULO-3274
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3274
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: tserver
>    Affects Versions: 1.6.1
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>              Labels: newbie, performance
>             Fix For: 1.6.5, 1.7.1, 1.8.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Noticed that {{MinorCompactor#call()}} repeatedly calls {{getOutputFile()}} which ultimately
calls {{Path#toString()}} each time. This isn't very efficient since we're repeatedly calculating
the same thing and creating a bunch of short-lived objects.
> The output file name isn't going to change mid-MinC so the MinorCompactor should keep
a local referenced to the result from a single call to {{getOutputFile()}} and use that local
variable each time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message