pjfanning opened a new pull request, #1306:
URL: https://github.com/apache/poi/pull/1306

   ## Summary
   
   `WorkbookEvaluator.evaluateAny` logged the result of every formula cell via 
`LOG.atDebug().log(() -> ...)`. That allocates a capturing lambda (and the 
`resultForLogging` copy it needed) on every evaluated cell, even when debug 
logging is disabled — the no-op `LogBuilder` only skips *invoking* the 
supplier, not creating it.
   
   This wraps the block in `if (LOG.isDebugEnabled())` and switches to a 
parameterized `LOG.debug(...)` call, so the common path allocates nothing. 
Output is unchanged when debug is on.
   
   ## Test plan
   
   - [x] `./gradlew :poi:compileJava`
   - [ ] CI
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to