On 2005.02.07, Jim Wilcoxson <[EMAIL PROTECTED]> wrote:
> Hi - I published the ns_share results, but it was a looong time ago,
> like a few years ago when we upgraded from 2.X to 3.X. I found this
> quote in my mailbox around November 9, 2002 from the mailing list:
Cool, thanks.
> Here is a copy of the code that is similar, though I don't think it is
> the exact code used for the test because it only sets 1 ns_share, not 2,
> and the loop is only 4 lines, not 10. But the general idea is the same:
>
> ns_share rlidarray
> set fd [open "textfile" r+] ;# a file of 32-char, fixed-length strings
> set recno 0
> while {[gets $fd s] == 32} {
> set idname [string trimleft [string range $s 0 24] " "]
> set rlidarray($idname,RECNO) $recno
> incr recno
> }
> if {[string compare $s "**EOF**"] != 0} {
> error "rlinitid: Missing EOF string in idfile"
> }
The danger here is that you're not only testing the performance of
AOLserver's [ns_share], but you're also introducing Tcl's file encoding
overhead as you're doing [gets] within the test.
If the test were organized such that the file's contents were read into
memory separately, and the timing loop only covered accesses to the
[ns_share]'d variable, it'd be a useful test. Apparently, the encoding
support added to Tcl 8.x wasn't without measurable cost. (Jeff Hobbs
can correct me on this statement if I'm wrong.)
> There was a race in the ns_share array code for [info exists] in TCL 7.X
> that used to cause our servers to crash a lot, but since fixing that,
> 3.4 has been rock solid.
That's great news, too.
> My other concern with 8.X is all the character set stuff. I know some
> people wanted that, which is fine, but we just don't have the time to
> debug weird character set issues that might occur, as they have for
> some people on the list.
Indeed, which is why I'm hoping Jim Davidson's rework of the whole
encoding/charset handling will alleviate any such issues for many of the
AOLserver implementations that have no need or care for that added
encoding support. Only the folks who need it will have to wrestle with
it to get it right, and IMHO that is fair and makes sense.
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.