Denard Springle
Member since May 30, 2024
- Profile: /members/14670-denard-springle.htm
- Comments: 3
Recent Blog Comments By Denard Springle
-
Parallel Iteration vs. Chunked Parallel Iteration In Lucee CFML
Posted on May 30, 2024 at 10:11 PM
Hmmm... I have some understanding of ParallelStreams in Java, but not enough to suggest a concrete reason for the performance discrepancy. I suspect it becomes a matter of memory management when trying to process large datasets that is the underlying cause of the CPU spikes. Keeping 100,000 ... read more »
-
Parallel Iteration vs. Chunked Parallel Iteration In Lucee CFML
Posted on May 30, 2024 at 2:42 PM
Happy to help in some small, indirect way lol and glad it lead to more investigation that altered the conclusions. I actually started playing with chunked parallelism in some of my code and came to the same conclusion you did - there doesn't seem to be much of a performance gain unless finel... read more »
-
Parallel Iteration vs. Chunked Parallel Iteration In Lucee CFML
Posted on May 30, 2024 at 9:49 AM
Your splitIntoChunks function actually gives you 1000 rows of 10, not 10 rows of 1000. A slight modification gets you what I think you were looking for: public array function splitIntoChunks( required array values, required numeric maxSize ) { var chunks = []; var chunk = []; var chunkS... read more »