|
| Author |
Message |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Mon Feb 02, 2004 6:37 pm Post subject: |
|
|
Ok, this poll has a purpose. It is to show that your computer has a lot of memory and you should be taking advantage of it.
I see so many commands and other code where each time they are run, they open a file or several files, load data from those files, get a random line or count the lines or whatever, then close the file and let go of the data they read in. This is inefficient.
Why not read the data in once when your bot starts, store it in memory, use it when needed and NOT delete it from memory, so that it is there ready the next time it is needed.
Let's say you have a 1000 line Yomama joke database stored in a file. If each line is 100 characters, that is 100K of memory. Can your computer spare that much?? 
This issue is even more extreme when you are opening, reading and closing a file every single time a message comes in to determine if the username is an admin, like the old wiredbots code did. Fortunately, Andromeda and other new bots have fixed this.
Ok, that's my lecture for today. |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Mon Feb 02, 2004 6:39 pm Post subject: |
|
|
| wow i got the most so far:D |
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
Posted: Tue Feb 03, 2004 12:03 am Post subject: |
|
|
heh an i have the least, besides the "other" 128 megs 
hope to build a new computer soon tho! |
|
| Back to top |
|
 |
Rameses Senior Member

Joined: 02 Feb 2004 Posts: 182
   
|
Posted: Tue Feb 03, 2004 12:07 am Post subject: |
|
|
384 here T'was 128 but I made an upgrade. Same w/ you, Keenie, I hope to build a new computer as well.  |
|
| Back to top |
|
 |
Luke Member

Joined: 01 Nov 2003 Posts: 111
   
|
Posted: Tue Feb 03, 2004 1:48 pm Post subject: |
|
|
256SD...
Keenie better not say how much video ram he has or they will laugh at him  |
|
| Back to top |
|
 |
Sypher Senior Member

Joined: 01 Jan 2004 Posts: 233 Location: The Netherlands
    
|
Posted: Tue Feb 03, 2004 2:49 pm Post subject: |
|
|
768 DDR - but 1024 Paired in a couple of weeks  _________________ Sypher
Developer of Codera |
|
| Back to top |
|
 |
jordanovjarra Member

Joined: 07 Nov 2003 Posts: 140
   
|
Posted: Tue Feb 03, 2004 4:22 pm Post subject: |
|
|
| Mine has 384mb on this pc lol |
|
| Back to top |
|
 |
bryan_rolfe9 Young One

Joined: 25 Jan 2004 Posts: 63
   
|
Posted: Fri Feb 06, 2004 12:08 am Post subject: |
|
|
My comp has 180 gigs (2 harddrives)  oh i have 128 mb ram if that wut you mean... oops |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Fri Feb 06, 2004 12:11 am Post subject: |
|
|
Memory. Not disk space. Memory is not hard drives. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
Tony_shu God Like

Joined: 12 Nov 2003 Posts: 624
    
|
Posted: Fri Feb 06, 2004 12:22 am Post subject: |
|
|
Well....if you up "virtual" memory...that can include disk space _________________ Anthony Arslan
@-Squared Enterprises
MacroHard Corporation |
|
| Back to top |
|
 |
bob Newbie

Joined: 23 Dec 2003 Posts: 23
   
|
Posted: Fri Feb 06, 2004 11:48 pm Post subject: |
|
|
i got 756 :$.. and 60gb harddrive.. .. i am gonna get 2 1gb rams eventually  |
|
| Back to top |
|
 |
GiL Not Yet a God

Joined: 06 Jan 2004 Posts: 344
    
|
Posted: Sat Feb 07, 2004 8:36 am Post subject: |
|
|
Well... On this comp I have 256 But like in a week im getting a new comp wit 512 always can get more  |
|
| Back to top |
|
 |
Future owner of cheatbot Senior Member

Joined: 02 Jan 2004 Posts: 161
   
|
Posted: Wed Feb 25, 2004 1:40 am Post subject: |
|
|
i have the lowest 64m of ram no video card i tossing this comp sooner or later |
|
| Back to top |
|
 |
Rameses Senior Member

Joined: 02 Feb 2004 Posts: 182
   
|
Posted: Wed Feb 25, 2004 1:47 am Post subject: |
|
|
::screams hysterically:: NOT 64! NOOOOOOOO! Oh.. sorry.. That stinks... lol!  |
|
| Back to top |
|
 |
Future owner of cheatbot Senior Member

Joined: 02 Jan 2004 Posts: 161
   
|
Posted: Wed Feb 25, 2004 1:50 am Post subject: |
|
|
| lol i dont blame ya |
|
| Back to top |
|
 |
|