@markw65/monkeyc-optimizer 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/build/api.cjs +439 -196
- package/build/optimizer.cjs +284 -207
- package/build/sdk-util.cjs +44 -10
- package/build/src/api.d.ts +4 -2
- package/build/src/jungles.d.ts +6 -1
- package/build/src/mc-rewrite.d.ts +3 -2
- package/build/src/optimizer-types.d.ts +3 -0
- package/build/src/optimizer.d.ts +6 -5
- package/build/src/resources.d.ts +11 -3
- package/build/src/util.d.ts +7 -2
- package/build/src/visitor.d.ts +1 -1
- package/build/src/xml-util.d.ts +32 -12
- package/build/util.cjs +6941 -3141
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -485,3 +485,25 @@ Bug Fixes
|
|
|
485
485
|
- Bug fixes
|
|
486
486
|
- Fix optimization of `and` and `or` (alternate names for `&&` and `||`)
|
|
487
487
|
- Fix a bug that could sometimes prevent the `has` optimization from kicking in.
|
|
488
|
+
|
|
489
|
+
### 1.0.41
|
|
490
|
+
|
|
491
|
+
- Bug fixes
|
|
492
|
+
- The fix to avoid visiting definitions from visitReferences was incomplete
|
|
493
|
+
|
|
494
|
+
### 1.0.42
|
|
495
|
+
|
|
496
|
+
- Update to [@markw65/prettier-plugin-monkeyc@1.0.38](https://github.com/markw65/prettier-plugin-monkeyc#1038)
|
|
497
|
+
|
|
498
|
+
- faster parsing
|
|
499
|
+
- supports parsing the attributes in api.mir, including sdk version etc.
|
|
500
|
+
|
|
501
|
+
- Performance
|
|
502
|
+
|
|
503
|
+
- Using the updated prettier-plugin-monkeyc halves the time spent in the parser
|
|
504
|
+
- There was some pathalogical behavior in the jungle processing. For most projects, it was quite fast (under 1s), but the worst project I found took nearly 5 minutes. I fixed a lot of redundant processing, which dropped most projects to under 500ms, with a worst case of 20s.
|
|
505
|
+
- I had some caching code to prevent reading the same resource file multiple times, but the cache didn't work properly because an async function ran in between the test of the cache, and the fill of the cache; which meant that lots of threads could test the cache and decide it needed to be filled. Fixed by caching Promises, rather than the promise results. Dropped the worst case 20s down to under 500ms, and the average down below 100ms.
|
|
506
|
+
- improved incremental builds (which helps with prettier-extension-monkeyc's live analysis)
|
|
507
|
+
|
|
508
|
+
- New features
|
|
509
|
+
- Resource files, and manifest.xml generate definitions and references so that prettier-extension-monkeyc can provide Goto Ref/Def between monkeyc, resource, and manifest files.
|