[1214] in Coldmud discussion meeting

root meeting help first previous next next in chain last in chain last

[COLD] Pause, suspend and re-entrancy....

daemon@ATHENA.MIT.EDU (Fri Jan 17 03:34:19 1997 )

Date: Fri, 17 Jan 1997 00:25:18 -0800
From: Jeff Kesselman <jeffk@ten.net>
To: coldstuff@cold.org


------------EB86584437A8
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

 Something ocurred to me the other night.....

What prevents Genesis from re-entering an object with a Paused or
Suspended method on another thread?  Seems pretty dangerous unless there
is a JAVA like "monitor" than can be sued for synchronization.

Oh, and  on another subject....

The Interperter currently does a C function call through a dispatch
table for EVERY opcode.  I suspect by judicious in-lining with a
switch() statement in teh execute() function of the most common
operators (things like +, -,++,--) we could SIGNIFICANTLY improve
performance.....   a C-call per fundemental math op is really kinda sick
and totally unecessary, IMO.

JK
------------------------------------------------------------------------

------------EB86584437A8
Content-Transfer-Encoding: 7bit
Content-Type: text/html; charset=us-ascii

<HTML><BODY>

<DT>&nbsp;Something ocurred to me the other night.....</DT>

<DT>&nbsp;</DT>

<DT>What prevents Genesis from re-entering an object with a Paused or Suspended
method on another thread?&nbsp; Seems pretty dangerous unless there is
a JAVA like &quot;monitor&quot; than can be sued for synchronization.</DT>

<DT>&nbsp;</DT>

<DT>Oh, and&nbsp; on another subject....</DT>

<DT>&nbsp;</DT>

<DT>The Interperter currently does a C function call through a dispatch
table for EVERY opcode.&nbsp; I suspect by judicious in-lining with a switch()
statement in teh execute() function of the most common operators (things
like +, -,++,--) we could SIGNIFICANTLY improve performance.....&nbsp;&nbsp;
a C-call per fundemental math op is really kinda sick and totally unecessary,
IMO.</DT>

<DT>&nbsp;</DT>

<DT>JK
<HR WIDTH="100%"></DT>

</BODY>
</HTML>
------------EB86584437A8--