You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Neil (JIRA)" <ji...@apache.org> on 2017/06/28 13:42:00 UTC

[jira] [Assigned] (KAFKA-5515) Consider removing date formatting from Segments class

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

Neil reassigned KAFKA-5515:
---------------------------

    Assignee: Neil

> Consider removing date formatting from Segments class
> -----------------------------------------------------
>
>                 Key: KAFKA-5515
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5515
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: Bill Bejeck
>            Assignee: Neil
>              Labels: performance
>
> Currently the {{Segments}} class uses a date when calculating the segment id and uses {{SimpleDateFormat}} for formatting the segment id.  However this is a high volume code path and creating a new {{SimpleDateFormat}} and formatting each segment id is expensive.  We should look into removing the date from the segment id or at a minimum use a faster alternative to {{SimpleDateFormat}}.  We should also consider keeping a lookup of existing segments to avoid as many string operations as possible.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)