some_guy 11 Posted February 23, 2010 Report Share Posted February 23, 2010 my current bot is starting to get pretty big, was wondering how you guys go about laying out a big bot. I have it as one bot split into many different scripts, with related subs in the script. Am beginning to think perhaps it would be best to have each script as it's own sub and use an include to bring them all together. That way when in ubot not so much would be in memory at one time (am on a 3year old+ laptop that grinds to a halt sometimes. Any advice appreciated. Quote Link to post Share on other sites
alcr 135 Posted February 25, 2010 Report Share Posted February 25, 2010 How big is big? I usually just put every function in subs, and then call all subs. Though I don't have to worry about memory. Quote Link to post Share on other sites
some_guy 11 Posted February 25, 2010 Author Report Share Posted February 25, 2010 822k, not huge and probably not an issue for powerful machines. Just sometimes if I refresh I have to wait a minute, and there a couple of times a night ubot grabs 250mb+ of memory my machines wrrrrrrrrrrrrs for a while, I go back a cup of tea then about 3mins later it is back down to 50mb. Probably close to 25 scripts each with a 2-3 subs in. Will try splitting it into 2-3 ubot files and see how that goes and report back. Quote Link to post Share on other sites
alcr 135 Posted February 26, 2010 Report Share Posted February 26, 2010 Though, 25 scripts is quite alot. But yeah, splitting it into 2-3 ubot files will at least make it a bit lighter. Quote Link to post Share on other sites
cervant41 2 Posted February 26, 2010 Report Share Posted February 26, 2010 I've got a bot approaching 2mb and the sunovabitch eats up a ton of memory when i leave the dev area open for a while Quote Link to post Share on other sites
webautomationlab 21 Posted February 26, 2010 Report Share Posted February 26, 2010 Better memory handling is a must feature later down the line. Quote Link to post Share on other sites
Frank 177 Posted March 15, 2010 Report Share Posted March 15, 2010 Better memory handling is a must feature later down the line. Don't really know the dyanamics of ubot, but the memory issues could be an internet explorer issue. I've noticed that version 8 is a huge memory hog. Good old M$. Frank Quote Link to post Share on other sites
alcr 135 Posted March 15, 2010 Report Share Posted March 15, 2010 We are working on this right now, rebuilding the base so that it won't draw THAT much memory. But it is still IE, we can't really run away from that unfortunately. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.