Results 1 to 4 of 4

Thread: Extra Component Faster of Slower?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425

    Extra Component Faster of Slower?

    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?
    "Experience is something you don't get until just after you need it."

  2. #2
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    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.
    "Experience is something you don't get until just after you need it."

  4. #4
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width