Skip to content

[Issue #176] Align PixelsBlockLoader with Trino 466 native blocks - #178

Open
gengdy1545 wants to merge 2 commits into
pixelsdb:masterfrom
gengdy1545:fixbug/blockLoader
Open

[Issue #176] Align PixelsBlockLoader with Trino 466 native blocks#178
gengdy1545 wants to merge 2 commits into
pixelsdb:masterfrom
gengdy1545:fixbug/blockLoader

Conversation

@gengdy1545

Copy link
Copy Markdown
Contributor

No description provided.

}
totalLength += scv.lens[i];
}
byte[] content = new byte[totalLength];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More memory allocation leads to higher GC pressure.

continue;
}
int len = scv.lens[i];
System.arraycopy(scv.vector[i], scv.start[i], content, curOffset, len);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional memory copy is inefficient.

long[] timeValues = new long[batchSize];
for (int i = 0; i < batchSize; ++i)
{
timeValues[i] = (long) tcv.times[i] * 1_000_000_000L;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More memory read is inefficient.

@bianhq bianhq added the enhancement New feature or request label Aug 5, 2026
@bianhq bianhq added this to the Compatibility milestone Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants