Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

>?= (Pipeline.compose) on freya<PipelineChoice> and freyaRouter causes significant delay in every request #205

@et1975

Description

@et1975

Essentially doing this: https://blog.mavnn.co.uk/logging-freya/
and finding that adding the composition affects every request - it takes a significant CPU hit (response time going from ~20ms to ~300ms). Tests indicate that it's something in the composition itself, as injecting the value into the freya state takes no time at all.

Sample code:

let owin : OwinMidFunc = 
        OwinMidFunc.ofFreya (Polyfill.kestrel
                                    >?= withLogger "log"
                                    >?= apiPipeline)
app.UseOwin(fun p -> p.Invoke owin)

Wondering if I'm doing it wrong, or maybe there's a way to optimize that away.

Metadata

Metadata

Assignees

No one assigned

    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