On 1/8/98 6:28 AM, Gary Barnett (gbarnett@POLARNET.COM) stated: >1) What is the correct method of determining the amount of memory >a particular data structure is using? I don't want to write a routine >to handle every darn struct in the mud and all the possiblities. I'd >rather spend my time creating a new feature or finishing a skill. You would want to do sizeof(*type) >3) I could create a struct to hold pointers to all the stuff that's >allocated and the amount of memory in that allocation. But that'd be >slow when it comes time to add/remove from the list. Thats what the kernel does. - Chris Jacobson +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST