Skip to content

perf: optimize data structures in context_bridge::ObjectCache - #27639

Merged
MarshallOfSound merged 1 commit into
masterfrom
ctx-bridge-optimize
Feb 8, 2021
Merged

MarshallOfSound merged 1 commit into
masterfrom
ctx-bridge-optimize

Conversation

@MarshallOfSound

@MarshallOfSound MarshallOfSound commented Feb 5, 2021 •

Copy link
Copy Markdown
Member
  • Use std::forward_list instead of base::LinkedList for better perf, more consistent memory management. Better than std::list because we don't need the double-linked-list behavior of std::list
  • Use std::unordered_map instead of std::map for the v8 hash table

Follow up to #27630

Notes: no-notes

@MarshallOfSound
MarshallOfSound requested a review from ckerr February 5, 2021 20:59
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Feb 5, 2021
* Use std::forward_list instead of base::LinkedList for better perf,
more consistent memory management.  Better than std::list because we
don't need the double-linked-list behavior of std::list
* Use std::unordered_map instead of std::map for the v8 hash table
@codebytere codebytere added performance 🏁 semver/patch backwards-compatible bug fixes labels Feb 8, 2021
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 8, 2021
@MarshallOfSound
MarshallOfSound merged commit 09870d9 into master Feb 8, 2021
@release-clerk

release-clerk Bot commented Feb 8, 2021

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Feb 8, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "11-x-y", please check out #27664

@trop trop Bot removed the target/11-x-y label Feb 8, 2021
@trop

trop Bot commented Feb 8, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "10-x-y", please check out #27665

@trop

trop Bot commented Feb 8, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "12-x-y", please check out #27666

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

Labels

performance 🏁 semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants