Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > fastest way to access global vars?

Reply
Thread Tools

fastest way to access global vars?

 
 
rghatol@unionbankph.com
Guest
Posts: n/a
 
      02-28-2004

hi guys,
I need your help on this.....
which is the fastest way to access global vars? (performance-wise)

#1. Applcation State

#2. <appSettings>

#3. Static public variable (global.asax)

(are there any other means?)

Thanks,

 
Reply With Quote
 
 
 
 
seb_gibbs@hotmail.com
Guest
Posts: n/a
 
      03-02-2004
try doing some tests...

eg.
<%
t1 = timer()
for n = 1 to 50000
x = 5
next
t2 = timer()
response.write t2-t1
%>

Normally find internal processing like the above is super fast, its usally when you start accessing external objects and doing some input output processing when things start to slow down.

If you have very long strings, you can make big improvements by breaking up.


Seb
www.sebsworld.co.uk



************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best/fastest way to access image data G.W. Lucas Java 12 11-03-2009 10:15 PM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 1 10-25-2006 06:50 PM
FWSM/PIX and Dynamic PAT using global IP range vs. global interface vs. global IP Hoffa Cisco 0 10-25-2006 01:04 PM
Fastest 5 mp Digital Camera ? Fastest 4 mp Digital Camera? photoguysept102004@yahoo.com Digital Photography 6 10-28-2004 11:33 AM
Re: fastest way to access global vars =?Utf-8?B?cmdoYXRvbA==?= ASP .Net 1 03-05-2004 06:13 PM



Advertisments