mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
restore memoized
This commit is contained in:
parent
cad50490f4
commit
2d499618df
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ Contributions to `monaco-languages`:
|
||||||
- now using **Typed Arrays** in a number of key places resulting in considerable speed boosts and lower memory consumption.
|
- now using **Typed Arrays** in a number of key places resulting in considerable speed boosts and lower memory consumption.
|
||||||
|
|
||||||
### Monarch Tokenizer
|
### Monarch Tokenizer
|
||||||
- Monarch states are now memorized up to a depth of 5. This results in considerable memory improvements for files with many lines.
|
- Monarch states are now memoized up to a depth of 5. This results in considerable memory improvements for files with many lines.
|
||||||
- Speed improvements to Monarch tokenizer that resulted in one **breaking change**:
|
- Speed improvements to Monarch tokenizer that resulted in one **breaking change**:
|
||||||
- when entering an embedded mode (i.e. `nextEmbedded`), the state ending up in must immediately contain a `nextEmbedded: "@pop"` rule. This helps in quickly figuring out where the embedded mode should be left. The editor will throw an error if the Monarch grammar does not respect this condition.
|
- when entering an embedded mode (i.e. `nextEmbedded`), the state ending up in must immediately contain a `nextEmbedded: "@pop"` rule. This helps in quickly figuring out where the embedded mode should be left. The editor will throw an error if the Monarch grammar does not respect this condition.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue