apache/arrow-java

Performance concern: fillHoles() method and read buffer expansion efficiency.

Offen

#599 geöffnet am 10.02.2025

 (9 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)Java (132 Forks)auto 404
Type: enhancementhelp wanted

Repository-Metriken

Stars
 (89 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Hi everyone,

I have the following use case: I’m benchmarking the read throughput performance when dealing with a large number of non-dictionary string columns (300 columns). Based on the profiler output (see the attached picture), I’ve noticed that a significant amount of time is spent in the fillHoles() method, which is part of the read buffer expansion process.

My question is: why is the buffer filled one element at a time instead of using a bulk operation? Wouldn’t a batch approach be more efficient?

Looking forward to your insights. Thanks!

Image

Contributor Guide