POV-Ray : Newsgroups : povray.off-topic : Processor speed : Re: Processor speed Server Time
7 Sep 2024 01:23:30 EDT (-0400)
  Re: Processor speed  
From: Invisible
Date: 31 Oct 2008 04:52:44
Message: <490ac75c@news.povray.org>
Darren New wrote:

>> I don't know much about how CPU caches work, but I imagine having the 
>> data scattered over several memory pages isn't very cache-friendly.
> 
> I don't think it's a matter of being spread over several pages, but a 
> matter of having small pieces (much smaller than a cache line) being 
> randomly accessed.

How wide is a typical cache line?

IIRC, a Haskell linked list node is 3 pointers wide.

> If you're using linked lists, even going 
> sequentially will cause the cache accesses to be unhelpful, because 
> xyz[37] isn't next to xyz[38].

Although, if they happen to be allocated sequentially, they might 
possibly be...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.