Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Two memory-related questions

Author: martin fierz

Date: 14:09:08 04/16/02

Go up one level in this thread


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.
>
>2) (For the Microsoft/Windows buffs) Is it possible to allocate more than 256M
>in a contiguous chunck under older Windows versions?
>
>--
>GCP

2) using malloc, you can only allocate up to 256MB. using VirtualAlloc, you can
allocate as much as you want, also under win95/98. i have also had a program of
mine run much faster (-30% execution time) when using VirtualAlloc instead of
malloc (my checkers endgame db generator).

aloha
  martin



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.