473,503 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance of ASP

Hi I have a question?

If I a loop that displays a list of records on a page, lets say a list
of contacts (lets say 200). The question that I have is does it effect
the performance if I add inside the loop the following:

if Arr[0,index]="1" then
.....
end if

Many thanks
Paul

Aug 9 '06 #1
4 1113

Paul wrote:
Hi I have a question?

If I a loop that displays a list of records on a page, lets say a list
of contacts (lets say 200). The question that I have is does it effect
the performance if I add inside the loop the following:

if Arr[0,index]="1" then
....
end if
It will depend on what the code is between the If... End If. For
example, if it's something like Response.Write " checked" (for a
checkbox), there will be no noticeable difference.

--
Mike Brind

Aug 9 '06 #2
Thanks for the advice.

The question is that if I had to loop through an array about 200 times
for 1500 oncurrent users, will using an "IF" statement will cause ANY
performance defect.

Paul

Mike Brind wrote:
Paul wrote:
Hi I have a question?

If I a loop that displays a list of records on a page, lets say a list
of contacts (lets say 200). The question that I have is does it effect
the performance if I add inside the loop the following:

if Arr[0,index]="1" then
....
end if

It will depend on what the code is between the If... End If. For
example, if it's something like Response.Write " checked" (for a
checkbox), there will be no noticeable difference.

--
Mike Brind
Aug 9 '06 #3
Paul wrote:
Thanks for the advice.

The question is that if I had to loop through an array about 200 times
for 1500 oncurrent users, will using an "IF" statement will cause ANY
performance defect.
I don't know. Time it and find out for yourself ...
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 9 '06 #4

"Paul" <pa**@bobbob.netwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
Thanks for the advice.

The question is that if I had to loop through an array about 200 times
for 1500 oncurrent users, will using an "IF" statement will cause ANY
performance defect.
No.
Paul

Mike Brind wrote:
Paul wrote:
Hi I have a question?
>
If I a loop that displays a list of records on a page, lets say a list
of contacts (lets say 200). The question that I have is does it effect
the performance if I add inside the loop the following:
>
if Arr[0,index]="1" then
....
end if
>
It will depend on what the code is between the If... End If. For
example, if it's something like Response.Write " checked" (for a
checkbox), there will be no noticeable difference.

--
Mike Brind

Aug 9 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
3452
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
12
17274
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
12
8318
by: serge | last post by:
I have an SP that is big, huge, 700-800 lines. I am not an expert but I need to figure out every possible way that I can improve the performance speed of this SP. In the next couple of weeks I...
6
2304
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
5
3984
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
115
7468
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
2725
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
4097
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
7
2548
by: Michael D. Ober | last post by:
When calling Enqueue, the internal array may need to be reallocated. My question is by how much? In the old MFC array classes, you could tell MFC how many additional elements to add to the array...
1
2441
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.