Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Windows (2000) questions

Author: martin fierz

Date: 16:11:28 10/18/02

Go up one level in this thread


On October 18, 2002 at 18:43:15, Gian-Carlo Pascutto wrote:

>On October 18, 2002 at 18:35:32, martin fierz wrote:
>
>>so your book doesn't fit into your memory? wow, that thing must be huge! or
>>maybe it's just that i'm spoiled with my GB-machine :-)
>
>On my machine it does, but I don't want to make the assumption it
>will on all machines, so the code uses fseek/fread/fwrite.
>
>I have 768M RAM. The book is 16M, the PGN is 153M. Windows is
>*continously* busy with the disk and my program is getting <5%
>CPU time. That's redicolous.
>
>The exact same program runs about 10x faster on Linux and barely
>accesses the disk.

i agree that this does sound rather excessive for windows :-)
however, i think in this case, it is in part your own fault: if your book is
only 16MB in size, it would run on 99% of all machines anyway if that is all the
memory you need to allocate (from your previous post, you say that you need to
update the book after every game you read). and even if somebody really still
had a machine which didnt have 16MB free ram, then you could still allocate that
memory anyway and make windows use it's virtual memory. of course it would have
to go to disk for that, but since you are doing that in your code already it
shouldn't get any worse than it is now, while on all "normal" machines it would
run much faster.

aloha
  martin


>--
>GCP



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.