DshWinchester Posted December 22, 2012 Author Share Posted December 22, 2012 Hi guys,I was wondering wich way is better to consume less network with handledata subsI will give a example; TRADE SYSTEM(request,accept,decline)way 1:Make one packet for each of themexample:> sub handleRequest> > request> > end sub> > sub handleaccept> > accept> > end sub> > etc..Way 2:making only one causing them to be divided by a variableexample:> select case Variable> > case 1> > request stuff> > case 2> > accept stuff> > case 3> > decline stuff> > end selectthanks Link to comment Share on other sites More sharing options...
Guest Posted December 22, 2012 Share Posted December 22, 2012 Second option, definitely. Link to comment Share on other sites More sharing options...
erkro1 Posted December 22, 2012 Share Posted December 22, 2012 Second is better, its like asking: "Will 3 eggs be more expensive than one?" ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)I'll explain why it's better:First option sends 2 packets, with almost no extra client work.Second option sends 1 packet, but the client has to do some extra work (the Select Case's), but the user won't notice because that's done pretty fast. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now