Skip to content

implement tier2 array support for specific element types - #338

Open
serprex wants to merge 2 commits into
mainfrom
tier2array
Open

serprex wants to merge 2 commits into
mainfrom
tier2array

Conversation

@serprex

@serprex serprex commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

boolean, int2/int4/int8, float4/float8, oid, uuid, text, varchar, char(n), name

jsonb inet cidr interval timetz macaddr macaddr8 tid

boolean, int2/int4/int8, float4/float8, oid, uuid, text, varchar, char(n), name
@serprex
serprex requested a review from harshil-goel November 21, 2026 03:59
@serprex

serprex commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

cargo bench --bench array_encode -- --iters 16, PG17 shadow with one bridge worker. Times are ms per batch; each batch is capped at 16 MiB of payload.

Shape Rows Body bytes Local wall Local CPU Oracle wall Oracle daemon CPU Oracle shadow CPU Wall speedup
int4[8], one NULL 100,000 56 10.60 11.50 32.84 7.61 30.99 3.1x
int4[1000] 4,173 4,020 2.73 3.74 74.36 14.83 69.51 27.2x
int8[64] 31,536 532 1.96 3.00 51.98 14.48 47.64 26.5x
text[8], 16 B strings 93,206 180 11.61 12.50 71.88 24.67 56.52 6.2x
text[100], 64 B strings 2,460 6,820 3.83 4.75 37.32 18.32 29.47 9.8x
uuid[4] 100,000 84 5.02 6.00 25.61 9.46 21.51 5.1x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant