Re: Tuning the build engine
Posted: Tue May 12, 2015 1:17 pm
Josef, I agree that this Sleep(1) solves one problem and now we can save the file without changing its name.
However, in the scripting mode there is nothing strange to put saving in CLOSE section and opening in BEGIN section of the module.
Please, imaging that this file is some database (actually it is). Will you open the connection each time you make the transaction to the database? No! You will make proper initialisation, then make all transactions and then only once you will flush all the data and save database state. Here we have similar situation.
This can be done by separate call of some procedure ConnectToStringsRsrc and then after all RegisterStringsRsrc, however we can just put this in BEGIN and CLOSE sections...
Now build engine is spending one second for each Appending, that is not small amount in total. If we make as I suggesting the Sleep(1) will be called only once in CLOSE section.
Nevertheless, I will be happy with the current (issue-#14) state of Script/Mod/Build.odc, because slowly but it will do it's work
However, in the scripting mode there is nothing strange to put saving in CLOSE section and opening in BEGIN section of the module.
Please, imaging that this file is some database (actually it is). Will you open the connection each time you make the transaction to the database? No! You will make proper initialisation, then make all transactions and then only once you will flush all the data and save database state. Here we have similar situation.
This can be done by separate call of some procedure ConnectToStringsRsrc and then after all RegisterStringsRsrc, however we can just put this in BEGIN and CLOSE sections...
Now build engine is spending one second for each Appending, that is not small amount in total. If we make as I suggesting the Sleep(1) will be called only once in CLOSE section.
Nevertheless, I will be happy with the current (issue-#14) state of Script/Mod/Build.odc, because slowly but it will do it's work