From e836f3c5d2ad140d6417cd908aab3da9aca3982e Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Sat, 3 Feb 2024 18:23:27 +0100 Subject: [PATCH] The map construction does not explain the sluggishness --- .../org/unicode/props/IndexUnicodeProperties.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java b/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java index f5d217cdb..b44e987b2 100644 --- a/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java +++ b/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java @@ -676,6 +676,19 @@ class IndexUnicodeProperty extends UnicodeProperty.BaseProperty { } } + @Override + public UnicodeSet getSet(PatternMatcher matcher, UnicodeSet result) { + final long start = System.currentTimeMillis(); + super.getSet(matcher, result); + final long stop = System.currentTimeMillis(); + final long Δt_in_ms = stop - start; + if (Δt_in_ms > 500) { + System.out.println("Long getSet for " + prop + " " + ucdVersion + " " + matcher + ": " + Δt_in_ms + " ms"); + new Throwable().printStackTrace(); + } + return result; + } + @Override protected UnicodeMap _getUnicodeMap() { var raw = _getRawUnicodeMap();