----boundary-LibPST-iamunique-2066041254_-_-
Content-type: text/plain
> The question is whether mandatory range checking unacceptably slow down
> memory access. Does anyone really know?
I've played with this a while ago in program where a (short) array
was used over and over again within a multiple loop.
I tried to replace the array by independent variables
and even by a circular list.
CPU time fluctuated within 1% as a result -- within measurement error.
It was a Pentium/133.
Presumably, the code and data got sucked up
into the innermost cache and the pipelining did its job.
Perhaps, for large arrays the results may be different
but based on my experiences, I do certainly not expect a 20% slowdown
on Intel chips unless the loop contains very few instructions.
If this particular piece of code is embedded into a realistic program,
then one should worry about this only in very exotic situations.
Cheers,
Fyodor Tkachov
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-2066041254_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4gVGhlIHF1ZXN0aW9uI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