Skip to content

Conversation

denravonska
Copy link
Member

This provides a small performance increase.

@denravonska denravonska added this to the Camilla milestone Aug 7, 2018
Copy link
Member

@iFoggz iFoggz left a 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

@tomasbrod
Copy link
Member

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.

@denravonska
Copy link
Member Author

You are right, it will. I'll see if there's a clean way to sort them on output.

@tomasbrod
Copy link
Member

I thought about copy-constructiong a ordered map on demand in the rpc handler.

@denravonska
Copy link
Member Author

That was exactly what I was going to do :D

@jamescowens
Copy link
Member

That should be pretty inexpensive memory-wise right?

@denravonska
Copy link
Member Author

@jamescowens It is double the stack usage for a section when it's been converted.

Copy link
Member

@iFoggz iFoggz left a 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.

@denravonska
Copy link
Member Author

Replaced by #1317.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants