Skip to content

Commit 591f648

Browse files
committed
New point release
Signed-off-by: Mike Lischke <[email protected]>
1 parent 6e7bf6c commit 591f648

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

ReadMe.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ Last release (pure TypeScript):
123123

124124
| Test | Cold Run | Warm Run|
125125
| ---- | -------- | ------- |
126-
| Query Collection| 6189 ms | 335 ms |
127-
| Example File | 1083 ms | 195 ms |
128-
| Large Inserts | 14510 ms | 14482 ms |
129-
| Total | 21904 ms | 15032 ms |
126+
| Query Collection| 4823 ms | 372 ms |
127+
| Example File | 680 ms | 196 ms |
128+
| Large Inserts | 15176 ms | 15115 ms |
129+
| Total | 20738 ms | 15704 ms |
130130

131131
The numbers are interesting. While the cold run for the query collection is almost 3 seconds faster with pure TS, the overall numbers in warm state are worse. So it's not a pure JS vs. TS situation, but something else must have additional influence and this will be investigated. After all the TypeScript code is ultimately transpiled to JS, so it's probably a matter of how effective the TS code is translated to JS.
132132

@@ -144,6 +144,12 @@ The example file is a copy of the largest test file in [this repository](https:/
144144

145145
## Release Notes
146146

147+
### 2.0.6
148+
149+
- Optimizations in HashMap and HashSet (from Peter van Gulik). This can have dramatic speed improvements, depending on the grammar. In the unit tests this shows mostly by a faster cold start.
150+
- Added CommonJS builds back. Especially when running unit tests using Node.js a CommonJS variant is simpler to handle.
151+
- Added clearDFA() methods in the simulators.
152+
147153
### 2.0.5
148154

149155
- Profiler port (from backspace <[email protected]>)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "antlr4ng",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"type": "module",
55
"description": "Alternative JavaScript/TypeScript runtime for ANTLR4",
66
"main": "dist/index.cjs",

0 commit comments

Comments
 (0)