Skip to content

Performance boost with char array instead of String operations #7

@arcticicestudio

Description

@arcticicestudio

The private method consistentShuffle(String,String) operates with different methods of the String parameter alphabet like

substring(int, char)
charAt(int)

which can be replaced with a char[] instead of a char as temporary variable.

This removes five additional String operations/methods and six String concatenations to three simple array assignments.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions