Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Two memory-related questions

Author: Rafael Andrist

Date: 10:18:26 04/16/02

Go up one level in this thread


On April 16, 2002 at 10:43:44, Gian-Carlo Pascutto wrote:

>On April 16, 2002 at 10:37:23, Rafael Andrist wrote:
>
>>On April 16, 2002 at 08:39:32, Gian-Carlo Pascutto wrote:
>>
>>>1) Would there be any advantage to my hash entries being 16 bytes instead of 14
>>>bytes? I'm thinking of possible alignment issues. The fact that I can have more
>>>if they're only 14 bytes is irrelevant for me.
>>
>>I think you will have to reorganize your datastructure so that several
>>14-bits-segments
>
>   ^
>   I
>
>This should be bytes.

Sorry.
But in general, my idea remains valid since the structure is aligned 4 or 8
bytes. If you put 4 times a 14 bytes element together so that it fits into 7*8
bytes, it may effectively reduce the memory needed without any penalty.

regards
Rafael B. Andrist



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.