Article View: comp.lang.basic.visual
Article #253Performance issue with NT 4.0
From: Anders P
Date: Tue, 12 Mar 2002 04:45
Date: Tue, 12 Mar 2002 04:45
26 lines
2572 bytes
2572 bytes
I have this performance issue with NT 4.0 for my Visual Basic app. I have
isolated the problem into the process of adding many items to a collection.
The same code and EXE-file runs REMARKABLY slower on Win NT 4.0 than on e.g.
Win2000 or Win98. Typical number would be 10-50 times slower on NT with
same hardware. Anyone having clues to the reason and any workarounds (when
upgrading the NT systems is out of the question!)?
best regards
-Anders
Test the follwing code for youself (paste code in a form with command button
and label):
Private Sub Command1_Click()
Dim dtStart As Date
Dim dtStop As Date
Dim collTest As Collection
Dim i As Long
Set collTest = New Collection
dtStart = Now
For i = 1 To 100000
collTest.Add "qwrqweltjqwegkwldjgsldkjsldqwertyjf"
Next i
dtStop = Now
Label1.Caption = DateDiff("s", dtStart, dtStop)
End Sub
Technical Details
Message-ID:
<xIfj8.3172$Mg4.3426@news1.bredband.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsspool1.bredband.com!news1.bredband.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f51ba,b177bb349b2c46c5,start X-Google-Attributes: gidf51ba,public X-Google-Thread: f645d,b177bb349b2c46c5,start X-Google-Attributes: gidf645d,public X-Google-Thread: 110e3b,b177bb349b2c46c5,start X-Google-Attributes: gid110e3b,public X-Google-Thread: 10cf61,b177bb349b2c46c5,start X-Google-Attributes: gid10cf61,public X-Google-Thread: fb992,b177bb349b2c46c5,start X-Google-Attributes: gidfb992,public X-Google-Thread: 111c14,b177bb349b2c46c5,start X-Google-Attributes: gid111c14,public X-Google-ArrivalTime: 2002-03-11 20:48:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsspool1.bredband.com!news1.bredband.com.POSTED!not-for-mail Reply-To: "Anders P" <ap@comp.nospan> From: "Anders P" <ap@comp.nospan> Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.misc,comp.lang.visual.basic,dk.edb.programmering.basic.visual-basic,microsoft.private.mvp.visualbasic,no.it.programmering.visual-basic Subject: Performance issue with NT 4.0 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <xIfj8.3172$Mg4.3426@news1.bredband.com> Date: Tue, 12 Mar 2002 05:45:13 +0100 NNTP-Posting-Host: 213.112.166.135 X-Complaints-To: news-abuse@bredband.com X-Trace: news1.bredband.com 1015908253 213.112.166.135 (Tue, 12 Mar 2002 05:44:13 CET) NNTP-Posting-Date: Tue, 12 Mar 2002 05:44:13 CET Organization: A customer of B2 Bredbandsbolaget (www.bredband.com)