electron/shell
Charles Kerr 77833eddfb
perf: avoid unnecessary vector copy in GetMimeTypeToExtensionIdMap() (#46373)
* perf: avoid making an unnecessary copy of the vector

MimeTypesHandler::GetMIMETypeAllowlist() returns a const&, so we can
iterate that directly instead of making a temporary copy of it.

* perf: move the call to ExtensionRegistry::Get() outside of the loop

Also, keep the previous behavior of not calling it at all if there
aren't any whitelisted extensions.

* perf: avoid redundant map lookup

* refactor: const correctness

* refactor: cleanup
2025-03-31 21:52:49 -05:00
..
app refactor: remove unused system header includes (#46015) 2025-03-14 10:59:15 -05:00
browser perf: avoid unnecessary vector copy in GetMimeTypeToExtensionIdMap() (#46373) 2025-03-31 21:52:49 -05:00
common feat: Corner Smoothing CSS rule (Reland) (#46278) 2025-03-31 11:22:23 -05:00
renderer feat: Corner Smoothing CSS rule (Reland) (#46278) 2025-03-31 11:22:23 -05:00
services/node fix: don't crash Utility Processes on unhandled rejections (#45921) 2025-03-14 09:09:02 -05:00
utility fix: broken OOP window.print() on macOS/Linux (#45214) 2025-01-20 10:23:44 +01:00