[PR #6640] Replace std::map with std::unordered_map #26764

Open
opened 2026-01-31 09:18:01 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/6640

State: closed
Merged: Yes


Replace std::map with std::unordered_map when the order doesn't matter
and hash functions are provided. Simple optimizations, but I expect the
performance should be strictly better, especially for
CodepointWidthDetector.hpp.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/6640 **State:** closed **Merged:** Yes --- Replace std::map with std::unordered_map when the order doesn't matter and hash functions are provided. Simple optimizations, but I expect the performance should be strictly better, especially for CodepointWidthDetector.hpp.
claunia added the pull-request label 2026-01-31 09:18:01 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26764