Vladimír Gorej
Vladimír Gorej
We first need to be clear about https://github.com/ikatyang/tree-sitter-yaml/issues/15 before we proceed any further.
> Regarding way of creating surrogate document from top level Error: IMHO we have to revise our plan as that CST contains gibberish: keyValuePairs along with flow nodes. So in...
Here is another fragments that doesn't work in newest version `[email protected]` and `[email protected]`: ```yaml openapi: 3.1.0 info: summary: Update an existing pet desc title: test title ```
I've just issued https://github.com/swagger-api/apidom/pull/2881 to provide maximum error recovery for YAML parsing. For this I retained [support for Node.js@18 and Node.js@20](https://github.com/swagger-api/apidom/pull/2857) (Node.js env), but used older versions of `[email protected]` and...
Real world fixtures are being integrated in #792 and #802
JSON direct syntactic analyzer (layer that translates tree-sitter CST into generic ApiDOM). Here are some numbers how ApiDOM parsing speed increased after this perf optimization. **Before** ``` * Parse stage:...
JSON indirecty syntactic analysis optimization results: **Before** ``` 4.45 ops/sec ±0.92% (621 runs sampled) ``` **After** ``` 11.07 ops/sec ±0.90% (650 runs sampled) ```
YAML syntactic analysis optimization results: **Before** ``` 4.77 ops/sec ±0.82% (623 runs sampled) ``` **After** ``` 9.93 ops/sec ±1.11% (642 runs sampled) ```
During the weekend I did extensive optimizations on all our syntactic analyzers - YAML and JSON. I managed to increase the syntactic analysis phase by another factor of 2 -...
tree-sitter cursor traversal needs to be used to get the performance we need. Full CST traversal is around 10x faster when used. POC of cursor traversal: ```js const cursor =...