Message9638

Author wdroste
Recipients amak, wdroste, zyasoft
Date 2015-03-12.16:47:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426178849.48.0.181717743774.issue2230@psf.upfronthosting.co.za>
In-reply-to
Content
On point 2

I was caching the CompiledScript and using Bindings to pass in variables. I didn't realize it still required re-compiling or additional processing.

The use case was for user provided expressions..

Example:
x AND y

My assessment was dynamically wrapping the expression in a function could potentially be error prone as the language syntax depends on line spacing.

However the performance difference was so great that I ended up doing it anyway.. and sure enough there were some sample expressions I had to modify but it wasn't as bad as I anticipated.

So I'm dynamically turning the expression above into..

def fx(x,y):
 return x AND y
History
Date User Action Args
2015-03-12 16:47:29wdrostesetmessageid: <1426178849.48.0.181717743774.issue2230@psf.upfronthosting.co.za>
2015-03-12 16:47:29wdrostesetrecipients: + wdroste, amak, zyasoft
2015-03-12 16:47:29wdrostelinkissue2230 messages
2015-03-12 16:47:29wdrostecreate