expressjs / body-parser

Node.js body parsing middleware
MIT License
5.45k stars 727 forks source link

perf: use the node require cache instead of custom caching #562

Open Phillip9587 opened 1 week ago

Phillip9587 commented 1 week ago

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.