Re: Big buffers

From: George (greerga@circlemud.org)
Date: 11/23/98


On Tue, 24 Nov 1998, Ronny Iversen wrote:

>I was wondering how to handle big buffers. For example my show zones
>
>is now so big it causes a lag and lately a crash whenever anybody use it?

Sounds like overflow.

>Any ideas how to handle big buffers in the mud efficiently?

char this_is_big_buffer[819200];

or malloc().

(Too big a number in the array above will cause a stack fault though.)

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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