How to speed up business rule scripting performance?

Hello,

I tried business rule scripting in delphi. I used TDAEcmaScriptProvider for client side scripting.

The script that I tested;

function onNewRow(row) {
row[‘Foo’]=‘Foo’;
}

It takes ~600 - ~700 ms to execute. I tried same script in pascal script. I took <5 ms. There is dramatically big difference between pascal script and java script performance.

Is there a way to speed up js performance?

Thanks,
Davut

TDAEcmaScriptProvider uses ole automation via msscript.ocx so it might be a reason for such delay. We have released a beta in which we introduced TDASpiderMonkeyScriptProvider. it should work faster

Wow, we were getting into it but we were not aware on how slow it was. Good to find out in time before any major changes were done. Thank you Davut.