Re: slow startup speed, XP SP 3
- From: red_nnnno@xxxxxxxxxxx
- Date: Mon, 1 Sep 2008 17:17:31 -0700 (PDT)
In this case, the problem is that each and every key-value update to
the *.ini file via the OS API is causing a temporary file to be
written, then the using the temporary file to replace the old version
of the *.ini file. (This fails if the program doesn't have delete
access to its own *.ini file -- which is the default under Vista for
programs installed under the Program Files folder....)
First a note here it seems angband updates the entire INI file
contents regardless of wether it's been changed or not, so I guess it
would be possible to reduce the newfile/write/delete loops by first
checking wether it needs to be written, this without affecting the
current implementation of those settings (the delete permissions issue
for Vista should probably be solved by using the \users folder in the
long run but more short term could be solved in an installer setting
the permissions).
Second, I think we all agree that though INI files are easy to deal
with, they are something that no one really beleives in. So what would
be suggestions to replace it? What do the other OS ports use anyhow?
.
- Follow-Ups:
- Re: slow startup speed, XP SP 3
- From: zaimoni
- Re: slow startup speed, XP SP 3
- Prev by Date: Re: Tales of the Semi-bold
- Next by Date: Re: slow startup speed, XP SP 3
- Previous by thread: Re: Moments of Glory?
- Next by thread: Re: slow startup speed, XP SP 3
- Index(es):
Relevant Pages
|
Loading