[squeak-dev] IntegerTest>>testRaisedToModulo too slow
Bert Freudenberg
bert at freudenbergs.de
Thu Jul 24 14:03:39 UTC 2014
Without a LargeIntegers plugin, this test is way too slow, it times out. Even in Cog it takes almost 1 minute:
"disable LargeIntegers plugin"
CompiledMethod allInstancesDo: [:cm |
(cm primitive = 117 and: [(cm literalAt: 1) first = #LargeIntegers])
ifTrue: [(cm literalAt: 1) at: 1 put: #LargeIntegersDisabled]].
Smalltalk unloadModule: #LargeIntegers.
"run test"
IntegerTest run: #testRaisedToModulo.
"enable LargeIntegers plugin"
CompiledMethod allInstancesDo: [:cm |
(cm primitive = 117 and: [(cm literalAt: 1) first = #LargeIntegersDisabled])
ifTrue: [(cm literalAt: 1) at: 1 put: #LargeIntegers]].
Smalltalk unloadModule: #LargeIntegersDisabled.
- Bert -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4142 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140724/817bc4f8/smime.bin
More information about the Squeak-dev
mailing list
|