fastest way to access global vars?

Discussion in 'ASP .Net' started by rghatol@unionbankph.com, Feb 28, 2004.

  1. Guest

    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,
     
    , Feb 28, 2004
    #1
    1. Advertising

  2. Guest

    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...
     
    , Mar 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?cmdoYXRvbA==?=

    Re: fastest way to access global vars

    =?Utf-8?B?cmdoYXRvbA==?=, Mar 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    388
  2. Jon

    app vars and cache vars

    Jon, Dec 14, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    426
  3. Blaine
    Replies:
    7
    Views:
    452
    Bryce
    Apr 26, 2005
  4. Linuxguy123
    Replies:
    7
    Views:
    732
    Paddy O'Loughlin
    Feb 20, 2009
  5. caccolangrifata
    Replies:
    18
    Views:
    429
    Chris Torek
    Jul 22, 2011
Loading...

Share This Page