Article View: comp.lang.basic.visual
Article #254Re: Performance issue with NT 4.0
From: Max Bolingbroke
Date: Tue, 12 Mar 2002 06:11
Date: Tue, 12 Mar 2002 06:11
40 lines
2824 bytes
2824 bytes
Runs so fast for me on XP that the button barely goes down.
Max Bolingbroke
"Anders P" <ap@comp.nospan> wrote in message
news:xIfj8.3172$Mg4.3426@news1.bredband.com...
> 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:
<a6k7sr$djn$1@newsfeed.th.ifl.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news.csl-gmbh.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.easynews.net!easynews.net!easynet-melon!easynet.net!peernews.mcc.ac.uk!ifl.net!not-for-mailReferences:
<xIfj8.3172$Mg4.3426@news1.bredband.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f51ba,b177bb349b2c46c5
X-Google-Attributes: gidf51ba,public
X-Google-Thread: 10cf61,b177bb349b2c46c5
X-Google-Attributes: gid10cf61,public
X-Google-Thread: fb992,b177bb349b2c46c5
X-Google-Attributes: gidfb992,public
X-Google-Thread: f645d,b177bb349b2c46c5
X-Google-Attributes: gidf645d,public
X-Google-Thread: 111c14,b177bb349b2c46c5
X-Google-Attributes: gid111c14,public
X-Google-Thread: 110e3b,b177bb349b2c46c5
X-Google-Attributes: gid110e3b,public
X-Google-ArrivalTime: 2002-03-11 22:40:29 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!news.csl-gmbh.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.easynews.net!easynews.net!easynet-melon!easynet.net!peernews.mcc.ac.uk!ifl.net!not-for-mail
From: "Max Bolingbroke" <batterseapower{no@spam}hotmail.com>
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: Re: Performance issue with NT 4.0
Date: Tue, 12 Mar 2002 06:11:08 -0000
Organization: Internet for Learning
Lines: 42
Message-ID: <a6k7sr$djn$1@newsfeed.th.ifl.net>
References: <xIfj8.3172$Mg4.3426@news1.bredband.com>
NNTP-Posting-Host: news-01.ps.ifl.net
X-Trace: newsfeed.th.ifl.net 1015915227 13943 194.238.50.13 (12 Mar 2002 06:40:27 GMT)
X-Complaints-To: abuse@ifl.net
NNTP-Posting-Date: Tue, 12 Mar 2002 06:40:27 +0000 (UTC)
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