Are vbscript classes fast?
Just found these forums and my first post, so hi all :)
I'm doing some work with vbscript just now and had a quick question I hope somebody could help with...
Say I have a few functions for accessing a database e.g. openDBConn, closeDBConn, openRs, closeRs, getRsAsArray, executeSql, getDbConnString etc
I could put these functions in to an include file "incDbHelper.asp" and include the file in any page that needs database functionality... or I could create a class "clsDbhelper.asp" which again I would include in any page that needs it. Now once the files have been included, to access the functions I could do:
executeSQL("select * form table")
(if my db class is called Database)
set db = new Database
db.executeSQL("select * form table")
So my question is what is the best method? Using a class seems like extra overhead for nothing? I've had a search around google but couldn't find anything on performance issues when using classes. Does anybody have an experience they could help me out with?
Thanks in advance for any help :)