I have 7 million+ records that i need to apply multiple formula to it.
This is how i am doing it:
I am converting my formula to shunting Yard Algorithm then using “find and replace” the variable then using Reverse Polish notation to convert to a double …
for instance:
y= ( 3 + X + RMT + T ) + 5
replace X by 6
replace RMT by 5.9
replace T by whatever…
it is taking too long.
Can i speed it up ?
thank’s
Note: the formula are dynamic and can change…
Use a profiler, fix your application.
I have a problem seeing a simple formula like that on a properly multi core system with parallelizaton taking more than a tenth off a second to do 7 million updates when a properly programmed interpreter is attached there.
Perfomrance for something like that is an implementation detail, and you lack ANY information.
NOrmally the usual applies – it is too slow, pull up a profiler and FIND OUT WHY.