diff options
author | vityaman <[email protected]> | 2025-05-19 11:17:12 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-05-19 11:31:23 +0300 |
commit | 50dbbb6a1e90cf9d1da40a92d563b02712b00b9e (patch) | |
tree | c9c2952f8521851540e08338d093f2067a68fdb4 /yql/essentials/sql/v1/reflect/sql_reflect.h | |
parent | 511e56c14b85e20b29e77f9da53d5bb29a3e996c (diff) |
YQL-19616: Fix TRegexLexer performance
Fix `TRegexLexer` performance. Now it is just 2 times slower than a reference ANTLR implementation on Release mode, so merged regexes are 3 times better than scan&compare.

---
- Related to `YQL-19616`
- Related to https://github.com/ydb-platform/ydb/issues/15129
- Related to https://github.com/vityaman/ydb/issues/42
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1278
commit_hash:1529f641172fea13f0d33fbfd06a4827c6efde01
Diffstat (limited to 'yql/essentials/sql/v1/reflect/sql_reflect.h')
-rw-r--r-- | yql/essentials/sql/v1/reflect/sql_reflect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yql/essentials/sql/v1/reflect/sql_reflect.h b/yql/essentials/sql/v1/reflect/sql_reflect.h index 1f67a2f93a3..dec5ff98816 100644 --- a/yql/essentials/sql/v1/reflect/sql_reflect.h +++ b/yql/essentials/sql/v1/reflect/sql_reflect.h @@ -13,7 +13,8 @@ namespace NSQLReflect { TVector<TString> OtherNames; THashMap<TString, TString> BlockByName; - static const TStringBuf KeywordBlock(const TStringBuf name); + static const TStringBuf KeywordBlockByName(const TStringBuf name); + static const TString KeywordNameByBlock(const TStringBuf block); }; TLexerGrammar LoadLexerGrammar(); |