Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load stackless functions #1656

Merged
merged 1 commit into from
Nov 12, 2023
Merged

Lazy load stackless functions #1656

merged 1 commit into from
Nov 12, 2023

Commits on Nov 10, 2023

  1. Lazy load stackless functions

    - I noticed that fasthttp was taking up 1.8MB of heap memory, even
    though it wasn't being used. This turned out to be the stackless
    function: 1.80MB  github.com/valyala/fasthttp/stackless.NewFunc
    - Lazy load the stackless functions with sync.Once, given this a simple
    atomic read, it shouldn't affect performance for the fast-path (I
    haven't seen benchmarks with compression enabled).
    Gusted committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    daacd95 View commit details
    Browse the repository at this point in the history