[ENH][Plugin] LargeIntegers division speedup

Stephan Rudlof sr at evolgo.de
Thu Jun 1 07:02:29 UTC 2000


"Change Set:		LargeIntegersPlugin-update
Date:			1 June 2000
Author:			Stephan Rudlof

Speeds up digitDiv:neg: at about 20%.

Precondition: 2163LargeIntegersPlugin

If you don't know how to compile a plugin, this changeset is probably of
no interest for you.

Try:

| divident divisor |
divident _ 1 << 1000. divisor _ 7.
[10000 timesRepeat: [divident digitDiv: divisor neg: false]] timeToRun


Implementation:

In >>cCoreDigitDivDiv:len:rem:len:quo:len: the 'nibble' arithmetic is
removed.
"
-- 
Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LargeIntegersPlugin-update.1.cs
Type: application/octet-stream
Size: 3494 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000601/e27d07a5/LargeIntegersPlugin-update.1.obj


More information about the Squeak-dev mailing list