I\'ve read that scripts that are calling for a subshell are slow, which would explain why my script are slow.
for example here, where I\'m running a loop that gets an