facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.24k stars 626 forks source link

Replace use of object with Map in Metro module registry #1301

Closed rubennorte closed 4 months ago

rubennorte commented 4 months ago

Summary: We've seen small performance wins from using Map instances instead of objects to store modules in the Metro module registry, so we're refactoring the implementation to use it.

Differential Revision: D59115092

facebook-github-bot commented 4 months ago

This pull request was exported from Phabricator. Differential Revision: D59115092

facebook-github-bot commented 4 months ago

This pull request has been merged in facebook/metro@1361405ffe6f1bdef54295addfef0f30523aaab2.