Duplicate structure in render_widget_host_view_mac_editcommand_helper.mm |
|
Issue descriptionhttps://cs.chromium.org/chromium/src/content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper.mm?sq=package:chromium Each RenderWidgetHostViewMacEditCommandHelper creates a base::hash_set edit_command_set_. This hash_set contains ~90 strings. Its exactly the same for each RenderWidgetHostViewMacEditCommandHelper, and each WebContentsView creates a RenderWidgetHostViewMacEditCommandHelper. This wasted ~240KB of memory for my ~30 tab browser. """ RenderWidgetHostViewMacEditCommandHelper:: RenderWidgetHostViewMacEditCommandHelper() { for (size_t i = 0; i < arraysize(kEditCommands); ++i) { edit_command_set_.insert(kEditCommands[i]); } } """ |
|
►
Sign in to add a comment |
|
Comment 1 by benhenry@google.com
, Nov 7