8000 Perf: Consider replacing the use of `Trace.unapply` with `Trace.parseOrNull` · Issue #923 · zio/zio-logging · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Perf: Consider replacing the use of Trace.unapply with Trace.parseOrNull #923
Closed
@guizmaii

Description

@guizmaii

In ZIO 2.1.14, we've made some performance optimisations to the Trace methods.
See:

The Trace.parseOrNull (package private to zio package) returns null if it can't parse the trace or returns a ParsedTrace case class (instead of a Tuple), which avoids boxing

I'm not sure how much you use Trace.unapply but I just wanted to make you aware of these changes and potential optimisation.

Feel free to close this ticket if irrelevant 🙂

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

      0