[PD-dev] Tcl_Eval() vs. Tcl_EvalObjEx()
Mathieu Bouchard
matju at artengine.ca
Thu Mar 6 07:48:34 CET 2008
On Thu, 6 Mar 2008, Hans-Christoph Steiner wrote:
> I am thinking of switching it to use Tcl_EvalObjEx(), which compiles
> the Tcl to bytecode, then caches the bytecode. It also skips some
> deprecated actions which Tcl_Eval() still does.
> Anyone know anything about this? I am curious about what the
> pitfalls might be before going down this road.
Just try it, and see whether it works, and whether it's any faster. Should
be easy to try, no?
To make a Tcl string object, just use Tcl_NewStringObj(s,strlen(s)).
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
More information about the Pd-dev
mailing list