Python scripts are compiled to byte code and the byte code is
interpreted. It won't reparse code it has already byte compiled.

I haven't looked into the Python For Delphi implementation but I would
be surprised if you couldn't get it to import and compile your script
and then call the already compiled methods.

Stacey

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Phil Scadden
Sent: Thursday, 25 October 2007 10:21
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Parser/Evaluator

Looking at delphi/Python, I dont think it cuts it. Suppose you want to 
graph a user-entered function
for a 1000 points. While you can pass variables etc, it looks to me like

the python function is being
parsed with every call? That is slow compared to parsing once and 
storing execution tree, then just
evaluating with new data in the allocated variables. There are a no. of 
components round that do this (jcl has one) but they lack conditionals. 
Maybe I do need to modernise formulabuilder.
-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477
5232

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject:
unsubscribe

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to