Re: The inaugural VB6 vs dot net test



"Michael C" <nospam@xxxxxxxxxxx> wrote in message news:%23rpH6PeNIHA.4272@xxxxxxxxxxxxxxxxxxxxxxx

Chill out Mike I'm not trying to wind you up

Okay. Then do me a favour and try the code I posted earlier today (testing the speed of addressing memory in both a top down and a bottom up order) and post the results, together with details of your machine. Because of my previous experiences with my own desktop machine (AMD 3000+) I came to the conclusion that it was getting perhaps four pages of memory (or whatever) into the cache (whatever the page size is) each time a page border was crossed and that it was getting the pages "from that point in memory upwards", thereby causing it to collect four pages every time it crossed a page boundary when our code is accessing memory in "counting down" order (hence the sixty per cent reduction in speed in the "counting down" code when compared to the "counting up" code. I then assumed that all machines did the same. However, as I've said on many occasions, my own hardware experience at the chip level is almost twenty years out of date and things have moved on a lot since then. When I performed exactly the same test on my Intel Celeron laptop both routines (count down and count up) ran at the same speed and it appears (just a guess at the moment) that on my Intel Celeron laptop the processor might be getting those four pages (I'm only guessing "four" of course) using the currently required address as the "middle point" of the four pages (rather than as the "start point" as the AMD appears to do). As I've said, my own hardware experience at the chip level is very out of date and there are probably a lot of other things to take into account these days, so these are just pure guesses at the moment. Anyway, I would appreciate it if you would run the code (all optimizations on) and report the results and the details of your own machine.

Mike


.



Relevant Pages

  • Re: List Count
    ... counting the number of primes within some interval. ... In fact it is probably quicker if you don't mind using all that memory ... to just store the cumulative sum of your prime True/False indicator ... This would be the prime counting function pi. ...
    (comp.lang.python)
  • Re: What is different with Python ?
    ... What makes bytes of memory, data busses, ... >and CPUs the right level of abstraction? ... From "counting" you can go ... Also lower than memory and data bus there is ...
    (comp.lang.python)
  • Re: Short term memory improvement
    ... counting & remembering, I have got very good advice on ... even know what I am lacking - is it memory or concentration ... are exercises to improve memory, ...
    (rec.games.bridge)
  • Re: Counting lines of a textfile
    ... Here we are counting lines in a file ... there is the assumption that the file will fit in memory ... my optimized InStror using 'elegant' ASM like SCASB ...
    (alt.comp.lang.borland-delphi)
  • Re: Meter issues
    ... I'm worried it is an issue with memory where I can easily forget the ... Any ideas or ways to practice getting this meter memory effect? ... I usually do not like counting because I can't "feel" the music. ... Usually breaks in my own playing though get ...
    (rec.music.theory)