Click to See Complete Forum and Search --> : Extra Component Faster of Slower?
BShadow
Jun 7th, 2002, 07:38 AM
Hello,
I wanted to know if when I make an extra component, will my application become slower of faster.
The extra ActiveX UserControl takes care of some functions. This was easier to do that to maken te program handle the functions directly (trust me :) ). Anyway, i was wondering if this does increase speed in any case?
shunt
Jun 7th, 2002, 12:43 PM
Of course this will slow your application down. But don't worry, the difference would be so small, that you would never ever notice the difference. For the ease of use, it is most definately the way to go. Don't sweat about performance here.
BShadow
Jun 7th, 2002, 02:00 PM
O, weel that's the problem. My program is a server for a game, this game has NPC (Non-player-characters). A normal user connects to a socket, and sends it commands. These commands can also be used for the NPC's but I don't want them to connect trough a socket, so I've created my NPCSocket with Senddata, DataArival and such, the same as the normal sockets.
Anyway, I'm searching for way's to make my allpication work faster, because I have alot of NPC's now, and the game is getting slower and slower... :(
I'll redo the NPC socket thing in a way that it won't use the ActiveX NPCSocket anymore...
The same reason I'm converting from a MDB database file to a MySQL server... But that doesn't work right now because of the readonly error I get...
Thank you for your information, it was what I wanted to know.
shunt
Jun 8th, 2002, 09:52 AM
The thing that usualy makes your app slow is not the fact that you are breaking it into separate components, but the way your code operates within the component. Look at this before you redo your components.
Also, if you are accessing databases then this is a good place to start optimization. I have also delt with mdb's that operate realy slow. First get that out of the way and then see how it works.
I'm not sure how your app works, but consider multithreading. But, if you want the fastest app, change to C++. This would be the ultimate in speed.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.