ID:2222809
 
(See the best response by Zagros5000.)
Code:
mob/clanholder
icon='NPCS.dmi'
icon_state="clans"
var/leader="nobody"
var/clanColor
var/ClanLevel=1
var/list/memberlist=list()
var/tmp/list/onlineMembers=list()
var/ClanExp=0
var/ClanLog=""
pl=50
proc/SaveClan()
var/savefile/F=new("Clans/[src.memberlist[1]].sav")
F["clanMob"]<<src





mob/verb/Test()
set category = "Options"
usr.clanMob.ClanExp+=1000
world<<"[usr.clanMob.ClanExp]"
usr.clanMob:SaveClan()


Problem description:When SaveClan() is called server stress dramatically increases and id like to know how to fix this. Is the coding inproper, or is it unfixable due to byond itself?

Best response
Saving icons/appearances is gunna inflate that savefile you should clear any icons on the mob before saving then rebuild them when needed with a proc as an easy way out