Click to See Complete Forum and Search --> : New Optimisations Area???
darre1
Jan 29th, 2002, 11:26 AM
Dear admins,
Could we have a VB Optimisations section, where people could put in useful optimisation techniques for various tasks? i.e. File I/O, printing, retrieving data etc...anything really that speeds up your app.
I think it would be a popular area
yours,
Darrel.
PS: Crackin' site! :cool:
honeybee
Jan 30th, 2002, 01:36 AM
How would you decide if a particular code would really optimize something? For simple tasks it's OK, but still there would probably be readability and maintainability issues with such 'optimized' code.
.
darre1
Jan 30th, 2002, 03:33 AM
well...
heres an example:
lets say you want to do a non-case sensitive comparison of two strings...
most people would do:
if UCase(str1) = UCase(str2) then...
but there's a VB function called StrComp()
using that is twice as fast (for this purpose)
i.e.
If StrComp(str1, str2, vbTextCompare) = 0
Just little things like that really...Can't do any harm.
honeybee
Jan 30th, 2002, 04:14 AM
Do you think such tips could be as many as to make a separate section/forum?
.
darre1
Jan 30th, 2002, 04:47 AM
yeh i do, although just like other dedicated areas it'll probably just get flooded with crap anyway :(
darre1
Jan 30th, 2002, 04:51 AM
what do you think?
honeybee
Jan 30th, 2002, 05:00 AM
Maybe a panel of good (in programming knowledge sense) members in the forums would choose the code, others could 'submit' entries etc. etc.
But then that's what is being followed at other sites such as planetsourcecode, I think.
.
darre1
Jan 30th, 2002, 05:23 AM
yeh, that's true.
it's just that this site it very popular and i think it's excellent.
- when it's not being abused
maybe i'll just start a thread in the general section and see what happens. if it gets spammed then it was a bad idea. ;)
honeybee
Jan 30th, 2002, 05:46 AM
Best of luck.
I guess the thread will simply drift down onto the other pages, where nobody will bother looking it up.
Or contact John/James or one of the mods personally to take this up. Maybe they will arrenge for the thread to stay on top like they did with Beacon's Image tutorial thread. That would be different. But for that you would need to have at least 3-4 good code optimization techniques ready, which are real good.
.
darre1
Jan 30th, 2002, 05:58 AM
i''ve got a few, that i've learned from other sites and books etc.
could you do me a favour and put one on there, coz it's drifting already :rolleyes:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.