On Saturday 09 November 2002 02:26, you wrote:
> Hi - this sounds interesting.  Can an ns_share emulation be
> implemented on top of this new shared var mechanism with good
> performance, i.e., at least equivalent to TCL7.6 ns_shares?
>

I doubt that we will get the function/performance of ns_share
as in 7.6. It was an entirely differen beast, as you know.

I might design a way of getting the regular Tcl variable bound
to a shared variable under the hood, so one can get more/less
what ns_share offered.

You'd eventually be able to do:

   tsv::share sharedVariable localVariable

and then do something like

   set localVariable(myindex) myValue
   puts $localVariable(myindex)

in your script. This I may do with variable traces or
some other scheme, I'm not yet sure about that.

Is the nsv_* something you cannot use as-is?
I find it very convenient. The only thing I do not
like at the moment is the need of an extra command to
access it. This would be solved by the above approach.
I must admit, I'm just playing with the idea. I did not
give it a serious thinking, though.

Cheers
Zoran

Reply via email to