Skip to content

Replace StringUtils#format in CachingLocalSegmentAllocator#getSequenceName #8904

@suneet-s

Description

@suneet-s

StringUtils#format is slow because it uses pattern matching under the covers to replace the format string with the variables.

Since this is called in a loop from InputSourceProcessor#process we should see a perf gain by switching this to using a StringBuilder or String addition instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions