AutoHotkey Community

It is currently May 26th, 2012, 9:30 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: speed up iniread/write
PostPosted: August 5th, 2009, 11:06 pm 
Offline

Joined: January 28th, 2009, 10:53 pm
Posts: 6
Location: MN, USA
i am using iniread and iniwrite to basically save the state of a program i have written (saving and loading the values of all the important variables)

I would prefer to use iniread and iniwrite so that my files will state the variable names and their value so they are readable

The problem is that i am reading and writing hundreds of variables and it takes several seconds, where as i have used filereading loops that parse files a million lines long (literally) in a fraction of a second. I think the problem is that iniread/write does not keep the file i am reading from open, and this makes everything very slow.

is there a way to use iniread/write but keep the file open until my filereading loop is complete?

update: iniread and write are built in windows functions so they cannot be sped up. this post is useful: http://www.autohotkey.com/forum/topic5127.html

_________________
-AJ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2009, 2:23 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Have you seen "Basic ini string functions"
http://www.autohotkey.com/forum/viewtopic.php?t=46226
which seems to do everything in memory, there are a few
other INI functions in the forum by Titan and majkinetor
(just search) which may be of interest (never tested them
myself)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group