Forum OpenACS Development: Re: ad_conn

Collapse
2: Re: ad_conn (response to 1)
Posted by Don Baccus on
I know nothing about the internals of the XoTcl implementation, so I'm just making a guess ... I imagine the speedup is due to the fact that Tcl arrays aren't particularly efficient. Handy but not all that fast as they're implemented as a list of name-value pairs.

You might also want to test the speed of "ad_conn -set" in the two implementations, and then the speed of rp_filter which uses "ad_conn -set" heavily ...

Of the unused ad_conn values that are set up that you mention ... AFAIK they can be removed.

Collapse
4: Re: Re: ad_conn (response to 2)
Posted by Andrew Piskorski on
Don, say what? Tcl's associative arrays are implemented via hash tables last time I looked. Unless I'm mistaken, no lists of name/value pairs are involved, except when you explicitly call commands which generate a list from the array.