🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual
14 messages
14 total messages Started by Anders P Tue, 12 Mar 2002 04:45
Performance issue with NT 4.0
#253
Author: Anders P
Date: Tue, 12 Mar 2002 04:45
26 lines
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
Re: Performance issue with NT 4.0
#254
Author: Max Bolingbroke
Date: Tue, 12 Mar 2002 06:11
40 lines
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
>
>
>
>
>
Re: Performance issue with NT 4.0
#255
Author: George Copeland
Date: Tue, 12 Mar 2002 12:39
12 lines
2721 bytes
"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!)?

Are you doing your timing in the IDE or in a compiled exe?
Re: Performance issue with NT 4.0
#256
Author: Joe "Nuke Me Xemu" Foster
Date: Wed, 13 Mar 2002 03:17
43 lines
3084 bytes
"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

I think you will find that it is even worse than you think.
Test how long it takes to do "Set collTest = Nothing" too!

Have a look at this:

 URL:http://groups.google.com/groups?selm=u2cjn68927u2a8%40corp.supernews.com

The "Pooled" class can be pretty much anything that will
tolerate not being cleaned up promptly.

--
Joe Foster <mailto:jlfoster%40znet.com>  Wanna buy a Bridge? <http://xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!
Re: Performance issue with NT 4.0
#257
Author: Anders P
Date: Wed, 13 Mar 2002 06:30
60 lines
3699 bytes
"Max Bolingbroke" <batterseapower{no@spam}hotmail.com> wrote in message
news:a6k7sr$djn$1@newsfeed.th.ifl.net...
> Runs so fast for me on XP that the button barely goes down.

Thanx, that was encouraging! ;-)

Anyway, point being, there **IS** a huge difference between performance on
this code on WinNT 4.0 and almost any other windows system. We have a test
department at our company with plenty of testing mashines and different
environments, and our customers have up to thousands of computers, making
room for chance in these test next to nothing. There is really no reason
everyone to post their results (and with the results from those who've done
it, I think one should get the picture already).

My big consern is if anyone has either a good *explaination* or any
*solution*.

Best regards
 -Anders

> "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
> >
> >
> >
> >
> >
>
>
Re: Performance issue with NT 4.0
#258
Author: Anders P
Date: Wed, 13 Mar 2002 06:31
23 lines
2608 bytes
My timing has been on the compiled EXE, but I have the feeling the same
result occur in the IDE.

-Anders

"George Copeland" <tma1_99@usa.net> wrote in message
news:qGmj8.10839$RK1.2485655611@newssvr11.news.prodigy.com...
> "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!)?
>
> Are you doing your timing in the IDE or in a compiled exe?
>
>
Re: Performance issue with NT 4.0
#259
Author: George Copeland
Date: Wed, 13 Mar 2002 15:16
17 lines
2797 bytes
"Anders P" <ap@comp.nospan> wrote in message
news:DlCj8.3652$Mg4.3938@news1.bredband.com...

> Anyway, point being, there **IS** a huge difference between performance on
> this code on WinNT 4.0 and almost any other windows system. We have a test
> department at our company with plenty of testing mashines and different
> environments, and our customers have up to thousands of computers, making
> room for chance in these test next to nothing. There is really no reason
> everyone to post their results (and with the results from those who've
done
> it, I think one should get the picture already).
>
> My big consern is if anyone has either a good *explaination* or any
> *solution*.

I would say that you have everything you need for a call to MS support.  Let
us know what they say.
Re: Performance issue with NT 4.0
#260
Author: Joe "Nuke Me Xemu" Foster
Date: Wed, 13 Mar 2002 18:39
17 lines
2327 bytes
"George Copeland" <tma1_99@usa.net> wrote in message <news:33Kj8.65638$em3.2360799327@newssvr30.news.prodigy.com>...

> "Anders P" <ap@comp.nospan> wrote in message
> news:DlCj8.3652$Mg4.3938@news1.bredband.com...

> > My big consern is if anyone has either a good *explaination* or any
> > *solution*.
>
> I would say that you have everything you need for a call to MS support.  Let
> us know what they say.

"This behavior is by design" and "What is your credit card number"?

--
Joe Foster <mailto:jlfoster%40znet.com>     Got Thetans? <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!
Re: Performance issue with NT 4.0
#261
Author: Max Bolingbroke
Date: Wed, 13 Mar 2002 19:11
1 lines
1795 bytes
LOL :)
Re: Performance issue with NT 4.0
#262
Author: George Copeland
Date: Wed, 13 Mar 2002 21:36
14 lines
2810 bytes
"Joe "Nuke Me Xemu" Foster" <joe@bftsi0.UUCP> wrote in message
news:u8v76ummnhc311@corp.supernews.com...

> > I would say that you have everything you need for a call to MS support.
Let
> > us know what they say.
>
> "This behavior is by design" and "What is your credit card number"?

Sorry, you are full of crap.  I have called MS developer support on numerous
occasions.  They have spent hours on the phone with me researching my
issues, and when it turned out they couldn't help me or that it really was
their bug, they didn't charge me a dime.  I'm sure you can imagine why they
might charge to write someone's application for them.
Re: Performance issue with NT 4.0
#251
Author: Anders P
Date: Wed, 13 Mar 2002 21:48
13 lines
2363 bytes
> > My big consern is if anyone has either a good *explaination* or any
> > *solution*.
>
> I would say that you have everything you need for a call to MS support.
Let
> us know what they say.

Well, as I am working in a Microsoft Certified Partner company, I actually
*WILL* call call MS support line. However, history shows that newsgroups
just as often provide just as fast, just as relieable answers. I will keep
you guys informed of any intelligible feedback ;-)

-Anders
Re: Performance issue with NT 4.0
#249
Author: AP
Date: Fri, 22 Mar 2002 11:17
30 lines
2922 bytes
Well, as it turned out, Microsoft no long supports Windows NT 4.0. So much
for any help from that direction. Apparently, they supprt only the two last
versions (that would be Win2K and XP).

The guys at MS also said that som much was being turned upside down and
inside out with memory handling and allocation from NT4.0 to the next
platforms that it would impossible to make any sense of it any longer. We'll
just have to conclude that WinNT suxx!!

-AP



"Anders P" <ap@comp.nospan> wrote in message
news:nNPj8.270$mq4.151@news2.bredband.com...
> > > My big consern is if anyone has either a good *explaination* or any
> > > *solution*.
> >
> > I would say that you have everything you need for a call to MS support.
> Let
> > us know what they say.
>
> Well, as I am working in a Microsoft Certified Partner company, I actually
> *WILL* call call MS support line. However, history shows that newsgroups
> just as often provide just as fast, just as relieable answers. I will keep
> you guys informed of any intelligible feedback ;-)
>
> -Anders
>
>
Re: Performance issue with NT 4.0
#250
Author: Joe "Nuke Me Xemu" Foster
Date: Fri, 22 Mar 2002 23:38
22 lines
2726 bytes
"AP" <a@b.com> wrote in message <news:a7f3mc$pk3$1@lise.netcom.no>...

> Well, as it turned out, Microsoft no long supports Windows NT 4.0. So much
> for any help from that direction. Apparently, they supprt only the two last
> versions (that would be Win2K and XP).

However, I'm sure they'd look into it if you answered the question,
"What is your credit card number"...

> The guys at MS also said that som much was being turned upside down and
> inside out with memory handling and allocation from NT4.0 to the next
> platforms that it would impossible to make any sense of it any longer. We'll
> just have to conclude that WinNT suxx!!

In other words, "This behavior is by design"?  Is memory management
faster on Lose2K Pro and/or LoseXP Pro, both of which use what used
to be the LoseNT kernel?

--
Joe Foster <mailto:jlfoster%40znet.com>  Wanna buy a Bridge? <http://xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!
Re: Performance issue with NT 4.0
#252
Author: Joe "Nuke Me Xemu" Foster
Date: Mon, 25 Mar 2002 05:06
15 lines
2353 bytes
"AP" <a@b.com> wrote in message <news:a7f3mc$pk3$1@lise.netcom.no>...

> Well, as it turned out, Microsoft no long supports Windows NT 4.0. So much
> for any help from that direction. Apparently, they supprt only the two last
> versions (that would be Win2K and XP).

Has somebody at Micro$haft been telling lies yet again?  LoseNT
4.0 isn't scheduled to enter "GFY phase" until 30 June 2003:

 URL:http://microsoft.com/windows/lifecycle.asp

--
Joe Foster <mailto:jlfoster%40znet.com>     Got Thetans? <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads