You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2019/05/31 20:06:00 UTC

[jira] [Closed] (BEAM-7397) Avoid String.format in state namespace construction

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

Luke Cwik closed BEAM-7397.
---------------------------
       Resolution: Fixed
    Fix Version/s: 2.14.0

> Avoid String.format in state namespace construction
> ---------------------------------------------------
>
>                 Key: BEAM-7397
>                 URL: https://issues.apache.org/jira/browse/BEAM-7397
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-core
>            Reporter: Steve Niemitz
>            Assignee: Steve Niemitz
>            Priority: Minor
>             Fix For: 2.14.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> I've noticed that for jobs that access state frequently, a percent or two of overall CPU time is actually spent calculating the state namespace name.
> StateNamespaces.java uses a String.format for the window namespaces, but could simply use a string concatenation to do the same thing with much less overhead. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)