Matthew-DWM opened a new issue, #9617: URL: https://github.com/apache/texera/issues/9617
### Task Summary `Tuple` computes `inMemSize` in its constructor with `SizeOf.newInstance().deepSizeOf(this)` ([Tuple.scala#L55](https://github.com/apache/texera/blob/f030df12b73c2c6a8f2e8b325c6e762d54fead7f/common/workflow-core/src/main/scala/org/apache/texera/amber/core/tuple/Tuple.scala#L55)), so every row builds a new sizing engine. On JDK 17 the library can't attach its agent, so each call first builds an `AgentSizeOf` that throws, then an `UnsafeSizeOf`, and every new engine starts with empty reflection caches. Keep one engine in the `Tuple` companion object and still call `deepSizeOf(this)` in the constructor, so every row is charged the same bytes as before. Local workflow runs: | Workflow (100K rows) | `main` | Shared engine | |---|---:|---:| | CSV → count | 2.11 s | 1.35 s (−36%) | | CSV → 4 projections → count | 1.93 s | 1.28 s (−34%) | Related: #9613, which makes the same line lazy for columnar sources. ### Task Type - [ ] Refactor / Cleanup - [ ] DevOps / Deployment / CI - [ ] Testing / QA - [ ] Documentation - [ ] Performance - [ ] Other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
