This PR refactors the VmMap class to enhance immutability handling and improve overall performance.
Key changes include:
Refactored the VmMap class to ensure consistent use of TruffleBoundary annotations.
Improved the Builder class for more efficient map construction.
Added null checks and robustness improvements for handling empty collections.
Optimized methods related to map and key order immutability.
These changes aim to increase the stability and reliability of the VM runtime. Please review the updates, and let me know if any adjustments are needed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/627
**Author:** [@manuelsblanco](https://github.com/manuelsblanco)
**Created:** 8/16/2024
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `might-be-null`
---
### 📝 Commits (2)
- [`3bd3701`](https://github.com/apple/pkl/commit/3bd3701e617fa734a0731df58f68b1fbe08370da) Refactor Fibonacci class to improve performance and readability
- [`8292b9f`](https://github.com/apple/pkl/commit/8292b9fc5a7ff906fbbfae479ef38ed6fdaa6863) Refactor VmMap class to improve immutability handling
### 📊 Changes
**2 files changed** (+24 additions, -5 deletions)
<details>
<summary>View changed files</summary>
📝 `bench/src/jmh/java/org/pkl/core/Fibonacci.java` (+19 -1)
📝 `pkl-core/src/main/java/org/pkl/core/runtime/VmMap.java` (+5 -4)
</details>
### 📄 Description
**This PR refactors the VmMap class to enhance immutability handling and improve overall performance.**
**Key changes include:**
- Refactored the VmMap class to ensure consistent use of TruffleBoundary annotations.
- Improved the Builder class for more efficient map construction.
- Added null checks and robustness improvements for handling empty collections.
- Optimized methods related to map and key order immutability.
- These changes aim to increase the stability and reliability of the VM runtime. Please review the updates, and let me know if any adjustments are needed.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/627
Author: @manuelsblanco
Created: 8/16/2024
Status: ❌ Closed
Base:
main← Head:might-be-null📝 Commits (2)
3bd3701Refactor Fibonacci class to improve performance and readability8292b9fRefactor VmMap class to improve immutability handling📊 Changes
2 files changed (+24 additions, -5 deletions)
View changed files
📝
bench/src/jmh/java/org/pkl/core/Fibonacci.java(+19 -1)📝
pkl-core/src/main/java/org/pkl/core/runtime/VmMap.java(+5 -4)📄 Description
This PR refactors the VmMap class to enhance immutability handling and improve overall performance.
Key changes include:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.