i heard many thinks like vb strings are slow. and that winsock control is slow.
so i was thinking, is it wise to make a C++ dll with multithreaded sockets that handle the string and call a specified function to handle the packet?
Printable View
i heard many thinks like vb strings are slow. and that winsock control is slow.
so i was thinking, is it wise to make a C++ dll with multithreaded sockets that handle the string and call a specified function to handle the packet?
they aint slow, i use them in a ONLINE text based game all the time
Since when do we test performance by text-based games? ;)
Honestly, what killer-project would bring you to care about the string manipulation performance?
You know you don;t have to use the inbuilt string functions. If you do not want to , You have two options. one Write all new ones your self, two Use the Windows API calls. both for dealing with strings and Winsock., unless you really do want to spend a few hours rewiteing them in C++
anyway good luck.
i have another idea... what about adding ASM functions like inc() and decr() and string functions that would speed alot up.. but woulndt it be better to just move onto C++ haha...
Byte arrays are faster, and VB coerces to and from byte arrays and strings nicely so they are not hard to use.
VB Code:
Dim sentence() As Byte sentence = "Hello World, Waddup"