Skip to content

Performance issue in StringUtilsΒ #361

@jkronegg

Description

@jkronegg

πŸ‘“ What did you see?

In the Parser.parse() method, 30% to 50% of the elapse time is passed doing String trimming in the StringUtils class, see #351 (comment)

βœ… What did you expect to see?

No doubt String trimming is important, but it should not last that long.

πŸ“¦ Which tool/library version are you using?

OpenJDK21
gherkin 31.0.0 (the main branch)

πŸ”¬ How could we reproduce it?

See JMH benchmark code in #351 (comment)

πŸ“š Any additional context?

Identified for #351

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions