[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Items loaded in memory
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Items loaded in memory

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Neves   USA  (78 posts)  [Biography] bio
Date Wed 11 Apr 2007 04:43 AM (UTC)
I've noticed that the SMAUG lib loads things into memory, like areas, helpfiles, etc. I am wondering why does it do this, to save memory upon later request? If i was to change this would it cause increased lag?

[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Wed 11 Apr 2007 04:57 AM (UTC)
What would you change it to do?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
[Go to top] top

Posted by Nick Gammon   Australia  (21,675 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Wed 11 Apr 2007 08:02 AM (UTC)
Areas are referenced almost all the time, it is hard to imagine a better way of storing them than in memory.

Conceivably you could load help data on request, however as a player somewhere is likely to be getting help on something fairly frequently, opening a file and reading it in, every few seconds, is likely to be a lot slower.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #3 on Wed 11 Apr 2007 08:13 AM (UTC)
A running copy of SMAUG uses relatively little memory especially with respect to the massive amounts of memory available these days. My game, which is quite large, only uses 60mb. Let the OS take care of swapping memory out if needed.

I agree with Nick, the hit you will take by constantly referring to disk is going to be much slower. Just let the OS take care of swapping out unused memory and bringing it in when needed.

Memory management tricks are more important when you have a data set of, set, a gigabyte, and you absolutely must have the minimum possible in RAM because you have so much of it.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]