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

Reduce coldstart time more. #187

Open
XerTheSquirrel opened this issue Oct 8, 2018 · 2 comments
Open

Reduce coldstart time more. #187

XerTheSquirrel opened this issue Oct 8, 2018 · 2 comments
Labels
enhancement Improves the library by adding a new feature! P3:Improvement refactor Refactoring!
Milestone

Comments

@XerTheSquirrel
Copy link
Contributor

The current coldstart time is 4-5 seconds on 512MiB, try to set a target of reducing the coldstart duration by 50%.

@XerTheSquirrel XerTheSquirrel added enhancement Improves the library by adding a new feature! refactor Refactoring! labels Oct 8, 2018
@XerTheSquirrel XerTheSquirrel added this to the Release 1.11.0 milestone Oct 8, 2018
@pselle pselle modified the milestones: Release 1.11.0, Release 1.10.0 Oct 10, 2018
@pselle pselle modified the milestones: Release 1.10.0, Release 1.11.0 Oct 24, 2018
@XerTheSquirrel
Copy link
Contributor Author

OPTIMIZATIONS WILL BE PLACED IN INDIVIDUAL PULL REQUESTS SO THEY CAN BE INDIVIDUALLY REVIEWED AND THAT WAY WE HAVE THEM WITHOUT HAVING ANY DELAYS SO WE CAN TAKE ADVANTAGE OF GOOD OPTIMIZATIONS.

@XerTheSquirrel
Copy link
Contributor Author

From https://hub.iopipe.com/iopipe-faq/what-is-the-overhead-of-iopipe:

On a Lambda with a memory limit of 512MB (the default) and an API Gateway implementation, the coldstart overhead is about 2.5 seconds and the non-coldstart overhead is about 10ms to 20ms. It should be noted that this time will vary depending on the configuration and the code that is used.

  • Library size: 17KB + 11MB of Dependencies
  • Average duration added by IOpipe on cold-start invocations: 2.5s
  • Average duration added by IOpipe on warm invocations: 10ms to 20ms

The added duration overhead occurs at the end of every invocation when the telemetry is sent to the IOpipe APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the library by adding a new feature! P3:Improvement refactor Refactoring!
Projects
None yet
Development

No branches or pull requests

3 participants