[PD-dev] Tcl_Eval() vs. Tcl_EvalObjEx()
Mathieu Bouchard
matju at artengine.ca
Tue Mar 11 20:36:42 CET 2008
On Thu, 6 Mar 2008, Hans-Christoph Steiner wrote:
> With Tcl_EvalObjEx(), the bytecode is cached as part of the object. I
> think in order for that to work with Pd, we'd have to use Tcl_Objs in
> sys_vgui. This would also have the advantage of making the network
> traffic to something like 10% of what it is now, if Pd and Tcl
> communicated using Tcl_Obj references.
1. why reduce the network traffic? does the network traffic itself slow
down things that much, or is it really something else?
2. how do you pass a Tcl_Obj across the network? you could also hold a
cache of the last commands in a Tcl dictionary, so that the Tcl_Objs are
preserved client-side.
3. how often are lines exactly duplicated? if you don't have much
duplication, you can't save much by removing the duplication.
I think that the answer is to simply use proc, and not worry about
bytecode, as proc takes care of it better than what you can do otherwise.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
More information about the Pd-dev
mailing list