Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Backtraces kill the performance #129

@golddranks

Description

@golddranks

I'm not sure if this affected me before (I think not), or is it because of recent changes in upstream, but...

DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 256ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 258ms
DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 255ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 257ms
DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 290ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 292ms
DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 270ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 272ms

...seriously, this isn't an acceptable level of performance. My web app is all open to DoSsing if I it takes third of a second just to construct an Error. For reference, here's the figures with backtraces off:

DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 0ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 2ms
DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 0ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 3ms
DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 0ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 2ms
DEBUG:ganbare::helpers: src/helpers.rs:365 time_it try_auth_user took 0s 0ms!
DEBUG:ganbare: Request http://localhost:8081/login took 0s 2ms

This is on MacOS. Are others experiencing these levels of performance drops?

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