-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improve package import times #3549
Copy link
Copy link
Open
Labels
performanceIssues related to performance.Issues related to performance.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Milestone
Metadata
Metadata
Assignees
Labels
performanceIssues related to performance.Issues related to performance.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, Crawlee is quite heavy on the startup time, and this also propagates to the Apify SDK. On Apify platform, the import times are between about 500ms (
@crawlee/http) up to 1000ms (fullcrawlee). Bundling with@vercel/nccreduces that time by about 30%.While Docker start times on Apify have continuously improved and are often below 1 second, the import times became major obstacle for faster startup. Plain Node.js startup is around 25ms, so there is a lot of space for improvement.
I haven't yet done enough research to propose some good solutions.