I have a very simple groovy script that works through JSON and performs some actions. Since there are no dependencies between JSON records and actions, I was hoping I could speed things up a bit. Given this code ...
def recordJSON = new JsonSlurper().parseText(myFile.text)
recordJSON.each{
do stuff here
}
Is there a way to execute execution or execute them in parallel? I have done a bit of reading on this topic, but I am a regular encoder and they seem to be a little over my head.
source
share