mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
* Bump gravitational/predicate to WIP commit * Remove some allocations in predicate expressions * Optimize contains(split()) in resource expression parser * Do a type-safe assert on the result of astutil.Apply * Keep the full value argument in the early exit of optimizeSplitContains * Handle degenerate cases in splitContains * Expand on the benchmark * Rename LazyStringSlice to StringSlice * Document StringSlice * Fix test * Fix handling of split on empty string * Bump gravitational/predicate to 1.4.0 * Optimize multibyte delimiters too * Update godoc for optimizeSplitContains * Clarify the logic in splitContainsAffix * Actually use multi-byte delimiters in BenchmarkSplitContains * Revert "Actually use multi-byte delimiters in BenchmarkSplitContains" This reverts commit595bb85ba9. * Revert "Optimize multibyte delimiters too" This reverts commitf285928e99. * Add some tests with overlap of target and delimiter * Clarify the return value of the AST optimization visitors * Add unit test just for the new string splitting * Add some broken utf8 coverage too