v3.0.0: Performance Boost, New Modules, and Streamlined Configuration
v3.0.0: Performance Boost, New Modules, and Streamlined Configuration
This release enhances PerlOnJava with significant performance optimizations, expanded module support, and improved configuration management, making Perl on the JVM faster and more efficient.
Highlights
1. Faster Start-up with On-Demand Code Generation
Code generation is now executed on demand, significantly reducing module loading time and improving overall performance.
2. Optimized Memory Usage
Scalar variables now use int instead of enum, lowering memory overhead and improving efficiency.
3. Improved Invocation Speed
Switched to JVM MethodHandle instead of Method, enabling faster execution of dynamically generated code.
4. Expanded Module Support
Added Time::HiRes and Benchmark modules, providing high-resolution timing and benchmarking capabilities for performance-critical applications.
5. Enhanced Regular Expressions
Introduced the /ee regex modifier, allowing double evaluation of replacement expressions for advanced text processing.
6. Configuration and Dependency Management
- Added a
--upgradeoption toConfigure.pl, making it easier to upgrade dependencies seamlessly. - Introduced a
Dockerfilefor simplified containerized deployment.
7. Relaxed Strictness for Compatibility
PerlOnJava now supports no strict 'vars' and no strict 'subs', improving compatibility with legacy code and dynamic constructs.
All Changes
Performance Enhancements:
- Execute code generation on demand for faster module loading.
- Use
intinstead ofenumto reduce scalar variable memory overhead. - Utilize JVM
MethodHandlefor more efficient invocation of generated code.
New Features:
- Added
Time::HiResandBenchmarkmodules. - Added the
/eeregex modifier for advanced text transformation. - Allowed
no strict 'vars'andno strict 'subs'for improved script compatibility.
Configuration and Deployment:
- Introduced a
--upgradeoption inConfigure.plto update dependencies. - Added a
Dockerfilefor container-based execution.
This release refines the performance and usability of PerlOnJava, making it a more powerful and flexible Perl distribution for the JVM ecosystem.
Explore the project: [GitHub](https://github.com/fglock/PerlOnJava)\
Try the new Docker support! Check out the included Dockerfile for easy deployment.