Re: [BLACKBOX] INTEGER arithmetic speed

From: [at]} <Bernhard>
Date: Wed, 19 Oct 2011 18:03:58 +0200

----boundary-LibPST-iamunique-36761397_-_-
Content-type: text/plain

> I have developed an algorithm that uses LONGINTs, and for a particular
> input takes 3.5 minutes to run.
>
> I don't always need such large numbers, so I cut-and-pasted an INTEGER
> version, which gives the same results for this input, but takes 5 minutes.

> Is this a freak result (maybe to do with cache boundaries or something),
> or is it a general situation that INTEGER arithmetic is 50% slower
> than LONGINT arithmetic

just a wild guess: afaik LONGINT arithmetik in BlackBox is handled by
the FPU in contrast to INTEGERs ...

regards
    Bernhard


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-36761397_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4gSSBoYXZlIGRldmVsb3BlZCBhbiBhbGdvcml0
aG0gdGhhdCB1c2VzIExPTkdJTlRzLCBhbmQgZm9yIGEgcGFydGljdWxhclxwYXINCj4gaW5wdXQg
dGFrZXMgMy41IG1pbnV0ZXMgdG8gcnVuLlxwYXINCj5ccGFyDQo+IEkgZG9uJ3QgYWx3YXlzIG5l
ZWQgc3VjaCBsYXJnZSBudW1iZXJzLCBzbyBJIGN1dC1hbmQtcGFzdGVkIGFuIElOVEVHRVJccGFy
DQo+IHZlcnNpb24sIHdoaWNoIGdpdmVzIHRoZSBzYW1lIHJlc3VsdHMgZm9yIHRoaXMgaW5wdXQs
IGJ1dCB0YWtlcyA1IG1pbnV0ZXMuXHBhcg0KXHBhcg0KPiBJcyB0aGlzIGEgZnJlYWsgcmVzdWx0
IChtYXliZSB0byBkbyB3aXRoIGNhY2hlIGJvdW5kYXJpZXMgb3Igc29tZXRoaW5nKSxccGFyDQo+
IG9yIGlzIGl0IGEgZ2VuZXJhbCBzaXR1YXRpb24gdGhhdCBJTlRFR0VSIGFyaXRobWV0aWMgaXMg
NTAlIHNsb3dlclxwYXINCj4gdGhhbiBMT05HSU5UIGFyaXRobWV0aWNccGFyDQpccGFyDQpqdXN0
IGEgd2lsZCBndWVzczogYWZhaWsgTE9OR0lOVCBhcml0aG1ldGlrIGluIEJsYWNrQm94IGlzIGhh
bmRsZWQgYnlccGFyDQp0aGUgRlBVIGluIGNvbnRyYXN0IHRvIElOVEVHRVJzIC4uLlxwYXINClxw
YXINCnJlZ2FyZHNccGFyDQogICAgQmVybmhhcmQgXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXIN
ClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tC
T1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSFxwYXINCn0=
----boundary-LibPST-iamunique-36761397_-_---
Received on Wed Oct 19 2011 - 18:03:58 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:10 UTC