[Xotcl] performance
Kristoffer Lawson
setok@fishpool.com
Mon, 12 Feb 2001 23:54:43 +0200 (EET)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--282346852-1343481383-982014883=:1950
Content-Type: TEXT/PLAIN; charset=US-ASCII
Just for interest I implemented one of the OO tests from Doug's shootout
(http://www.bagley.org/~doug/shootout/) in XOTcl to see how it would
fare. Specifically it was the method call speed test
(http://www.bagley.org/~doug/shootout/bench/methcall/). I have attached my
code to this email.
According to my own tests, it didn't do terribly well, but it's difficult
to say whether this is a limitation of Tcl (which doesn't do very well in
several of those speed tests) or just a sign that there might be some room
for optimisation in XOTcl itself. Now what would be interesting would
be a comparison with iTcl -- but as I don't know it I'll leave that for
someone else. Any comments?
- ---------- = = ---------//--+
| / Kristoffer Lawson | www.fishpool.fi|.com
+-> | setok@fishpool.com | - - --+------
|-- Fishpool Creations Ltd - / |
+-------- = - - - = --------- /~setok/
--282346852-1343481383-982014883=:1950
Content-Type: TEXT/x-tcl; name="method.tcl"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0102122354430.1950@gfanrend.fishpool.fi>
Content-Description:
Content-Disposition: attachment; filename="method.tcl"
cGFja2FnZSByZXF1aXJlIFhPVGNsDQoNCg0KQ2xhc3MgVG9nZ2xlDQoNClRv
Z2dsZSBpbnN0cHJvYyBpbml0IHtzdGFydFN0YXRlfSB7DQogICAgc2V0IFtz
ZWxmXTo6c3RhdGUgMQ0KICAgICMgW3NlbGZdIHNldCBzdGF0ZSAxDQp9DQoN
ClRvZ2dsZSBpbnN0cHJvYyB2YWx1ZSB7fSB7DQogICAgcmV0dXJuIFtzZXQg
W3NlbGZdOjpzdGF0ZV0NCn0NCg0KVG9nZ2xlIGluc3Rwcm9jIGFjdGl2YXRl
IHt9IHsNCiAgICAjICAgIFtzZWxmXSBpbnN0dmFyIHN0YXRlDQogICAgc2V0
IFtzZWxmXTo6c3Rh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