delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | Elliott Oti <oti AT phys DOT uu DOT nl> |
Subject: | Re: 64k demo (slightly off-topic reply) |
Sender: | usenet AT fys DOT ruu DOT nl (News system Tijgertje) |
Message-ID: | <Pine.OSF.3.95.980614014835.14733A-100000@ruunat.phys.uu.nl> |
In-Reply-To: | <6lun9s$cie@dfw-ixnews10.ix.netcom.com> |
Date: | Sat, 13 Jun 1998 23:53:09 GMT |
References: | <35819A38 DOT C1BA3FCB AT hotmail DOT com> <358305BC DOT 61AB AT stud DOT warande DOT ruu DOT nl> <6lun9s$cie AT dfw-ixnews10 DOT ix DOT netcom DOT com> |
Mime-Version: | 1.0 |
Organization: | Physics and Astronomy, University of Utrecht, The Netherlands |
Lines: | 18 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Sat, 13 Jun 1998, Matthew Conte wrote: > Quick question: is access to a dynamically allocated array slower than a > static global array, or are they the same? Depends. The speed of memory access depends on whether the accessed memory is also in the cache, and whether that is more likely for static data in your program code or globally allocated memory depends on your program behaviour -- where it spends more time in, etc. All things being equal, it should make no difference. Cheers, Elliott Oti kamer 104, tel (030-253) 2516 (RvG) http://www.fys.ruu.nl/~oti
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |