-
Notifications
You must be signed in to change notification settings - Fork 183
Change appcache to use unordered_map #1247
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
Change appcache to use unordered_map #1247
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Id like to see more use of unordered* where we can
RPC output of listdata and similar should be ordered. I can't check right now, but if this adds regression, create a issue for it, please. |
You are right, it will. I'll see if there's a clean way to sort them on output. |
I thought about copy-constructiong a ordered map on demand in the rpc handler. |
That was exactly what I was going to do :D |
That should be pretty inexpensive memory-wise right? |
@jamescowens It is double the stack usage for a section when it's been converted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this, only sort when its needed for rpc. makes sense even thou a double stack occurs for a short term period during this. So that insignificant imo for clarity.
Replaced by #1317. |
This provides a small performance increase.