[m-dev.] how many asserts/retractalls can *you* do per second?

Peter Schachte pets at students.cs.mu.oz.au
Tue Sep 9 17:36:22 AEST 1997


On Tue, 9 Sep 1997, Thomas Charles CONWAY wrote:


> You may have noticed that the sicstus version of the compiler was
> running a little slowly[1]. The reason seems to be that Fergus's
> recent change to io.nu.nl to make the io__state a "global" means
> that for each char that gets read, sicstus does an assert and a
> retract. Same for each putback_char. That was after I fixed the
> bug in which it forgot to assert an initial value of io__save_putback.
> This clearly needs a bit of a rethink. Ideas anyone?

You might try to use mutables.  They're Sicstus 3's replacement for setarg.


-Peter Schachte      URL:  http://www.cs.mu.oz.au/~pets/
pets at cs.mu.OZ.AU     PGP:  finger pets at 128.250.37.150 for key
    Do insects spend hours demammaling their programs?




More information about the developers mailing list