Skip to content

HttpProblem captures a full stack trace on every construction #669

Description

@phillip-kruger

HttpProblem extends RuntimeException but is used as a structured error container, not for diagnostics. Every construction fills in a stack trace, which is wasted CPU - especially for high-volume 4xx responses representing expected client mistakes.

Overriding fillInStackTrace() to return this would eliminate this overhead. The existing JMH benchmark can measure the improvement.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions