arXiv:2608.26368cs.PFAug 2026

Manuscript Offprint

arXiv:2608.26368

Direct-Operable SIMD Bit-Slicing: A Framework for Memory-Efficient Predicate Evaluation

Arunkumar Mathiyazhagan

Abstract

Traditional Java object models introduce significant memory overhead due to object headers and internal padding, often leading to performance bottlenecks in data-intensive distributed systems. This paper presents a novel framework that utilizes the Project Panama Vector API to perform predicate evaluation directly over bit-sliced, compressed data streams. By transposing standard row-oriented data into parallel bit-planes, we demonstrate a mechanism to evaluate complex filters using SIMD (Single Instruction, Multiple Data) instructions without requiring prior decompression. The framework supports integers, longs (timestamps), doubles (via IEEE 754 order-preserving transformation), and strings (via dictionary encoding). Our benchmarks indicate a reduction in memory footprint by up to 8× while maintaining or exceeding the throughput of uncompressed standard Java collections. End-to-end evaluation on TPCDS-modeled data at 50M rows demonstrates 2.4–10.8× speedup over scalar scans across five representative filter-heavy query patterns, with extended type benchmarks on TPCDS columns showing 1.5–43× speedups for timestamps, decimals, and dictionary-encoded strings.

1 Introduction

Memory is the bottleneck. Not compute, not storage, not network—memory. The divergence between processor speed and memory bandwidth—the “Memory Wall” first characterized by Wulf and McKee [4]—has become the dominant constraint in data-intensive systems. While CPU clock speeds and instruction-level parallelism have continued to improve, main memory latency has improved at roughly 7% per year compared to over 50% per year for compute throughput [10]. For analytical workloads that scan billions of rows, the cost of moving data from memory to the CPU now dwarfs the cost of the computation itself.

This is not merely a performance problem—it is an economic one. In cloud environments, memory is the most expensive resource per unit capacity. A memory-optimized instance with 256 GB RAM costs approximately 48% more than a compute-optimized instance with the same vCPU count but only 64 GB RAM. At enterprise scale, analytical workloads routinely require terabytes of working memory across a cluster; reducing memory footprint by 5× translates directly to 5× fewer memory-optimized instances, representing millions of dollars in annual infrastructure savings for large deployments. Memory constraints force organizations to choose between processing speed (keep data in memory), cost (spill to disk), and capability (limit dataset size). A technique that reduces memory consumption while maintaining or improving throughput addresses all three simultaneously.

Java-based distributed engines (Apache Spark, Presto/Trino, Apache Flink) are particularly affected by memory pressure. The JVM object model imposes a minimum 16-byte header on every

∗^{*}This work was conducted independently and does not relate to the author's position at Amazon.com, Inc. The views and findings expressed are solely those of the author.

object—12 bytes for the mark word and class pointer, plus 4 bytes of alignment padding on 64-bit HotSpot [7]. An Integer object that stores 4 bytes of payload consumes 16 bytes of heap, a 4× overhead. For arrays of boxed integers, the overhead compounds: an ArrayList<Integer> holding 1 million values occupies approximately 20 MB of heap, compared to 4 MB for a raw int[]. At the scale of columnar scans over hundreds of millions of rows, this overhead translates directly into increased GC pressure, L2/L3 cache evictions, and degraded throughput. When memory is exhausted, these engines spill to disk—and disk I/O is 100,000× slower than memory access, converting a memory problem into a catastrophic performance cliff.

Columnar storage formats such as Apache Parquet [11] and Apache ORC [12] address the storage problem through dictionary encoding, run-length encoding, and bit-packing. However, these formats follow a decompress-then-compute model: data must be decoded into JVM heap objects before predicate evaluation can proceed. Apache Arrow [8] improves on this with a zero-copy columnar memory format, but its Java implementation still materializes values into on-heap arrays for computation. Native engines like Databricks Photon [13] and Meta's Velox [14] bypass the JVM entirely with C++ execution, but this sacrifices the ecosystem advantages of the JVM—type safety, garbage collection, and the vast library ecosystem that makes Java the dominant language for distributed data processing.

This paper presents a different approach: rather than decompressing data before computation or abandoning the JVM, we keep data in a compressed bit-sliced representation and perform predicate evaluation directly on the compressed form using SIMD instructions. We call this the Zero-Decompression model.

The key insight is that bit-slicing—a technique originally proposed by O'Neil and Quass [5] for bitmap indexes—naturally aligns with SIMD execution. When integer values are transposed into bit-planes, each plane is a contiguous vector of bits that maps directly onto a SIMD register. Predicate evaluation reduces to a sequence of bitwise operations (AND, OR, NOT) across these planes, which modern CPUs execute in a single cycle per SIMD lane. The Project Panama Vector API (JEP 508) [2] exposes these SIMD instructions to Java, enabling hardware-native vectorized computation without leaving the JVM.