Skip to content

Conversation

@elundh
Copy link
Contributor

@elundh elundh commented Jan 13, 2025

Only initialize ./lib/lambda-service once. Doing this seemed to bring the runtime down much more consistently to 100ms or less (5ms in my case)

Copy link
Collaborator

@naorpeled naorpeled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @elundh,
the changes look great to me.

Thanks for this 🙏

Could you please fix the CI errors?
I'll happily merge this afterwards.

@elundh
Copy link
Contributor Author

elundh commented Feb 4, 2025

fixed the lint issues.

@naorpeled naorpeled merged commit 1d70db1 into jeremydaly:master Feb 4, 2025
3 of 4 checks passed
@naorpeled naorpeled linked an issue Feb 4, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

require('./lib/lambda-service') should not reload module every time

2 participants