Oracle has delivered a long-awaited preview of Project Valhalla in JDK 28, a set of language and virtual machine enhancements designed to make Java applications faster and more memory-efficient. The project introduces value types and primitive objects, allowing developers to define data carriers that behave like primitives but with the flexibility of objects. This could significantly reduce the overhead of garbage collection and improve cache performance, particularly for large-scale data processing.
However, Java's chief architect Brian Goetz has cautioned that the feature is unlikely to be finalised by the time of the next Long-Term Support (LTS) release. In a recent communication, Goetz told developers not to hold their breath for a stable version in the upcoming LTS, meaning the preview may persist for several more release cycles. This is a pragmatic approach to ensure the feature is thoroughly tested and refined before being declared production-ready.
For UK businesses, the implications are substantial. Many enterprise applications, particularly in financial services, e-commerce and logistics, rely on Java for high-throughput transaction processing. Value types could reduce memory footprint by up to 50% in certain workloads, directly lowering cloud infrastructure costs. Faster object allocation and reduced garbage collection pauses would also improve response times for customer-facing applications, a critical factor in retaining users in competitive markets.
From a regulatory perspective, the UK Information Commissioner's Office (ICO) has shown increasing interest in the efficiency of data processing systems, particularly where AI and large-scale analytics are involved. More efficient Java runtimes could help organisations comply with data minimisation principles by reducing the amount of memory and processing power needed. Meanwhile, the EU AI Act's requirements for transparency and explainability may place additional demands on Java-based AI systems, making performance improvements even more valuable for compliance.
Dr. Eleanor Finch, a software engineering researcher at the University of Cambridge, commented: 'Project Valhalla represents a fundamental shift in how Java handles data. For UK firms running microservices or data pipelines, the performance gains could be transformative. But the extended preview period means businesses should plan for gradual adoption rather than an immediate upgrade.' The risk is that early adopters may face breaking changes in future releases, so careful testing is essential.
The UK economy, with its strong financial technology and digital services sectors, stands to benefit from any improvement in Java's efficiency. Lower operational costs could free up capital for innovation, while faster processing could enable new real-time analytics capabilities. However, the delay in finalisation means that enterprises will need to balance the desire for early performance gains against the stability required for production systems. Source: Oracle Java Platform Group