From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,41b2c090403fab50 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-09 10:24:20 PST Message-ID: <3DA463E8.1080202@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Creating tempfile takes too long: GNAT or Windows bug? References: <4a4de33a.0210090358.fc50c13@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 09 Oct 2002 13:14:16 -0400 NNTP-Posting-Host: 198.96.47.195 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1034183656 198.96.47.195 (Wed, 09 Oct 2002 13:14:16 EDT) NNTP-Posting-Date: Wed, 09 Oct 2002 13:14:16 EDT Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:29628 Date: 2002-10-09T13:14:16-04:00 List-Id: M�rio Amado Alves wrote: > Hi all. > > Creating a temporary file (see test code below) is taking the > unreasonable time of 30+ seconds on Windows XP (with GNAT 3.14p) on my > laptop. Has someone had this sort of problem? I believe this problem has been discussed before in this group. Perform a Google search, and you might get additional information on this. Another possibility is that your temp directory has 100's, if not 1000's of leftover temp files in it. I experienced this problem with my family's Win98 system because one piece of software creates a temp file everytime it runs (I havn't determined which it is), but fails to clean them up (ain't commercial software wonderful?) I ended up creating a simple C program that periodically cleans out any of these that are n days old. This improved the general performance of all applications affected, _significantly_. There were literally, several 1000 of temp files, mostly empty. This causes extremely long directory searches. But I seem to recall there was another reason for the performance penalty as well. Search Google. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg