Skip to content

Commit 47a2c0c

Browse files
dfa1claude
andcommitted
feat(array): add fold to IntArray, FloatArray, ShortArray, ByteArray
Consistent with LongArray/DoubleArray. Uses appropriate functional interfaces: IntBinaryOperator for IntArray, DoubleBinaryOperator for FloatArray, LongBinaryOperator for ShortArray/ByteArray (avoids overflow). Simplify non-nullable branches in numericSum to use fold. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cbe342a commit 47a2c0c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

TODO.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [ ] Publish reproducible perf artifacts
1818
- Capture JMH JSON + JFR profile alongside README table; cite hardware (CPU model), JDK build (`java -version`),
1919
and benchmark commit SHA so numbers don't rot silently.
20-
- [ ] performance tests must be peer reviewed
20+
- [ ] performance tests must be peer reviewed
2121
- [ ] run performance tests on other machines (I have access only to Apple M5)
2222
- [ ] minimize `ctx.arena().allocate(...)` calls — prefer in-place decode when child buffer is writable (already done in ALP); audit all decoders for unnecessary off-heap allocs
2323
- [ ] **Evaluate Vector API (JEP 469+) for hot decode loops** — candidates: FastLanes bitpacked unpack,
@@ -116,7 +116,6 @@
116116
117117
## API
118118
119-
- [ ] add fold to all numeric array types (see integration test sumArray)
120119
- [ ] Use domain primitives (`UInt32`, `UInt64`, etc.) as value classes via Project Valhalla instead of raw `long`/`int`
121120
- See https://dfa1.github.io/articles/rethink-domain-primitives-with-valhalla
122121
- Candidates: `PType` integer kinds, buffer offsets, row indices, byte lengths

0 commit comments

Comments
 (0)