orpiske commented on pull request #6248: URL: https://github.com/apache/camel/pull/6248#issuecomment-941023513
I have tested with [this](https://github.com/orpiske/file-consumer/blob/master/src/main/java/org/apache/camel/MyRouteBuilder.java) route and a data set composed of 2 million files. Changing this seems to give a small benefit in terms of memory usage. It's not so easy to notice, but in my desktop 3.11 seems to peak at close to 5Gb of heap usage: ![camel-3 11 2](https://user-images.githubusercontent.com/1851560/136962842-c092fae2-cf74-4317-9909-792edc461142.png) Whereas 3.13.0-SNAPSHOT peaks at the lower 4Gb: ![camel-3 13](https://user-images.githubusercontent.com/1851560/136962848-f6c0dba2-a448-40aa-ac6b-093b825e24ca.png) This was constant among several executions. There's no apparent problem with the performance, based on this [benchmark](https://github.com/orpiske/file-consumer/blob/master/src/main/java/org/apache/camel/BenchmarkFile.java). Although the numbers are slight better for 3.13, it's so small that's not really meaningful. [311.txt](https://github.com/apache/camel/files/7330404/311.txt) [313.txt](https://github.com/apache/camel/files/7330405/313.txt) -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org