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

feat(sdk): optimize cold-start performance #320

Merged
merged 1 commit into from
Aug 6, 2024

Commits on Aug 6, 2024

  1. feat(sdk): optimize cold-start performance

    Move import statements to container initialization to enhance runtime performance.
    
    By shifting import statements to container initialization rather than at invocation time, we ensure that the import process is completed with more resources available, leading to improved cold-start performance.
    
    For the `hello` and `store` path handlers in the quickstart example, this change reduces the latency of the first request from 9s to 2.4s. Increasing the memory size from 128MB to 1024MB further cuts the first request latency down to 1.8s. These measurements were taken in China, and the lambda instance is deployed in the us-east-1 region.
    jianzs committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    a1d47be View commit details
    Browse the repository at this point in the history