From f4b4a177900d6315f40850b07cdb6daa649c0595 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 21 Oct 2021 22:32:07 +1100 Subject: Feature [feature-requests:#1417] Cache maximum key value in SpecialRepresentations as this allows quick determination of absence for most multi-byte UTF-8 and DBCS characters. --- src/PositionCache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/PositionCache.h') diff --git a/src/PositionCache.h b/src/PositionCache.h index 9a9f2e6fc..4ee501841 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -201,6 +201,7 @@ typedef std::map MapRepresentation; class SpecialRepresentations { MapRepresentation mapReprs; unsigned short startByteHasReprs[0x100] {}; + unsigned int maxKey = 0; bool crlf = false; public: void SetRepresentation(std::string_view charBytes, std::string_view value); -- cgit v1.2.3