Re: [linux-audio-dev] code in different files affects speed?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] code in different files affects speed?
From: Tim Hockin (thockin_AT_hockin.org)
Date: Sun Dec 08 2002 - 21:21:19 EET


> does anyone here know if splitting code across different files, or for
> that matter, reordering the layout of one source file so that
> functions called together are now "far apart" can actually affect
> execution speed?

Not on x86, at least since we have a flat address space. I don't know about
other architectures, of course, but I suspect not.

The exception is, of course, cache. Closer things will tend to both be in
cache, or neither in cache (up to cache-lines). Probably matters more for
data than code.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Dec 08 2002 - 21:25:26 EET