Translation can be a lengthy process for a file with many json lines. Time can be saved, however, if we know that the same translator will be used on all the lines. Currently, for each line:
the matching translator is found (runs a matching routine for all translators known to the installation)
the translate() function is called.
If we e.g. pass the correct translator as an argument to the call, we can skip step 1 for all the lines and just do a version of it once upfront.
Translation can be a lengthy process for a file with many json lines. Time can be saved, however, if we know that the same translator will be used on all the lines. Currently, for each line:
translate()
function is called.If we e.g. pass the correct translator as an argument to the call, we can skip step 1 for all the lines and just do a version of it once upfront.