From 4d1c90a56f276108d62de84f6366c3be35eea44d Mon Sep 17 00:00:00 2001 From: DQ Date: Sat, 22 Jun 2024 12:00:23 +0200 Subject: [PATCH] [Changelog] add additional note for upgrading with lasso compat --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bfd531..936faf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * The `interning` module has been rewritten. It now provides fuctions for obtaining a default interner (`new_interner` and `new_threaded_interner`) and provides a small, dependency-free interner implementation. * Compatibility with other interners can be enable via feature flags. * **Note** that compatibilty with `lasso` is not enabled by default. Use the `lasso_compat` feature to match the previous default. + * If you are using `lasso` interners directly that you are also passing to `cstree`, note that while e.g. the `GreenNodeBuilder` can work with `lasso::Rodeo`s, you will not be able to convert between `lasso`'s `Spur` and `cstree`'s `TokenKey`. The `TokenKey` can, however, be used as the key type for `lasso` interners at no additional cost by working wiht a `Rodeo` instead of the `lasso`-default `Rodeo`. * Introduced `Syntax::static_text` to optimize tokens that always appear with the same text (estimated 10-15% faster tree building when used, depending on the ratio of static to dynamic tokens). * Since `cstree`s are lossless, `GreenNodeBuilder::token` must still be passed the source text even for static tokens. * Internal performance improvements for up to 10% faster tree building by avoiding unnecessary duplication of elements.