Skip to main content

Denard Springle

Member since May 30, 2024

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel