Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Option explicit can not be used
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Deleted
deleted

4116 Posts

Posted - 13 October 2002 :  08:24:03  Show Profile
Performance differences between no dim'ing, dim'ing & const can be found in one of my tests: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=27023

Stop the WAR!
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 13 October 2002 :  08:42:59  Show Profile  Visit Gremlin's Homepage
Do you recall if any of those test were run with Option Explicit ? I don't see any mention in the thread of whether you had or not.

If you Dim and then set a regular variable immediately in code (as you would for a Const) you'll actually find the results for that should be very similar to Const as well becuase of the early type casting of the variable. Option Explicit of course doesnt provide any type casting though so doesn't help in that area anyway.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 13 October 2002 :  09:30:37  Show Profile
I don't think option explicit itself can help performance, it's the result of it, proper dimming, does the work.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 13 October 2002 :  09:33:32  Show Profile  Visit Gremlin's Homepage
Thats my belief also, which is why I'm supporting the view of not having it in your production code to reduce the initial overhead it creates parsing the script, you've already reaped the benefits of using it during development to ensure you've correctly DIM'ed all variables. :)

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07