[DUG] Parser/Evaluator
Stacey Verner
stacey at cjntech.co.nz
Thu Oct 25 11:16:10 NZDT 2007
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: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
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 at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
More information about the Delphi
mailing list