Article View: borland.public.cppbuilder.nativeapi
Article #14079File IO slowdown
From: Eelke Klein
Date: Tue, 26 Aug 2003 09:20
Date: Tue, 26 Aug 2003 09:20
27 lines
2088 bytes
2088 bytes
We have in our program in import function which imports data into our data file. We have a main file and several index files. Inserting a new record requires several read and write operations on several files. For a customer we have to import two files. Both files have the same format. The strange thing which happens is while importing the first file goes at normal speed (about 400 records per second) the second file goes very slow (about 1 record per second). When the two files are appended so we get one big file the whole file is imported at normal speed. Reversing the order of the two files has no effect. Restarting the program between the two files or even rebooting doesn't help either. Actually there are both record which must be updated and records which must be inserted. Only the inserting is affected. The main file grows in the process from about 42 MB to about 50 MB. The problem occurs both on Windows 2000 and Windows 98SE. Unfortunatly its impossible for me to give a small example program. However I would like to get suggestions on the possible cause of this problem. Thanks, Eelke Klein
Technical Details
Message-ID:
<3F4B266F.5050901@mplussoftware.nl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,783f3dc615979b63,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-26 02:30:27 PST Message-ID: <3F4B266F.5050901@mplussoftware.nl> Date: Tue, 26 Aug 2003 11:20:47 +0200 From: Eelke Klein <e.klein@mplussoftware.nl> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: File IO slowdown Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.58.1.162 X-Trace: newsgroups.borland.com 1061889572 81.58.1.162 (26 Aug 2003 02:19:32 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail