New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id-map should be modernized and existing logic moved to legacy #10703
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still relevant. |
@mitar The stringification is necessary in case you use mongo object ids. |
Good point. |
Do you want to keep this open? Maybe we could check the type before calling stringify, but I doubt it will bring any meaningful improvement. |
It think it would be useful to determine if this is performance benefit for string IDs. If it is large, then it could be useful to have two code paths based on ID (we know which ID is being used per collection). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think this has been done? No? We are using map internally now? |
Just checked. As @mitar has stated |
Maybe open another issue for those two? |
Now that we have modern/legacy browser separation, we could change
id-map
to simply be aMap
with an existingid-map
API on modern browsers, while keeping existing code to be used on legacy browser.Alternatively, we could even replace
id-map
as a whole with simply aMap
now, leaving to polyfills to implementMap
to work over every key value. Interestingly though, these daysid-map
(since 79ae184),id-map
is already using internallyMap
, but still does key stringification. That is not necessary anymore.I am suspecting this would improve performance of Minimongo on the client as
id-map
is used there a lot. Moreover,id-map
is used also in oplog driver on the server.The text was updated successfully, but these errors were encountered: