www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/19/10:47:41

Date: Wed, 19 Apr 1995 08:30:42 -0400
From: dj (DJ Delorie)
To: pietervk AT vub DOT vub DOT ac DOT be
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Performance of addressing memory

> The problem is that when I use one char before and one char 
> after e.g. an array of doubles, the time of *addressing* the array 
> is significantly (but not very large) larger than when I use 
> an int as guard. When I use a calloced array there is no 
> difference with ints as guards. Not that I do not count the time 
> needed to allocate the blocks.

If you cause the array to become unaligned, you can degrade
performance due to additional memory cycles required to access each
element.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019