Skip to content

Conversation

@Phillip9587
Copy link
Member

This PR replaces the custom caching logic with Node.js's built-in require cache. By leveraging the require cache, the codebase is simplified, performance is improved, and maintenance overhead is reduced. The custom logic has been removed, and the parser loading now relies on require.

Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

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

Generally a fan of this. I always wondered why this was done in the first place when lazy loading has worked like this for a LONG TIME.

Copy link
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

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

LGTM

@Phillip9587
Copy link
Member Author

Hi @wesleytodd @UlisesGascon! Apologies for the additional ping. I hope you're both doing well. I noticed this PR has received three approvals and no objections. Please let me know if there’s anything else needed from my side. Thank you so much!

@wesleytodd
Copy link
Member

Hey! No worries! I am just getting setup this week to get caught up (again, it is a never ending battle lol). I think this is good to merge, so will do so now. I am not going to prep a release just yet as I want to catch up on the ~500 notifications first to make sure we have the bigger picture plan in mind, but I will hopefully get releases ready for a bunch of this before the end of the month.

@wesleytodd wesleytodd merged commit a45a451 into expressjs:master Jan 8, 2025
7 checks passed
@Phillip9587 Phillip9587 deleted the perf-node-require-cache branch January 8, 2025 13:50
@UlisesGascon UlisesGascon mentioned this pull request Jan 23, 2025
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.

4 participants