🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++.leda
Article #47

LEDA's Memory management

#47
From: P. Mantecon
Date: Fri, 18 Aug 1995 09:06
14 lines
937 bytes
As we all know, LEDA includes the macro  LEDA_MEMORY(type)  to provide
an efficient memory management  schema.  Basically it allocates memory
in chunks of 2^13 -4 bytes and then slices every chunk in cells of the
appropriate size.

I can  understand  the size of the basic chunk to be a power of 2, but
what  puzzles me is that -4 bytes, so my  question  is the  following:
why the chunk size is precisely 2^13-4 instead of being just 2^13?

Ideas, anyone?

		Patricia
		
P.S. Source code appears in _memory.c & memory.h
Technical Details
Message-ID: <pmanteco.808736786@rscernix>
Path: arc1-ca.pugleaf.net!CERN.ch!haifa!pmanteco

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.c++.leda
Path: arc1-ca.pugleaf.net!CERN.ch!haifa!pmanteco
From: pmanteco@haifa.cern.ch (P. Mantecon)
Subject: LEDA's Memory management
X-Nntp-Posting-Host: haifa.cern.ch
Message-ID: <pmanteco.808736786@rscernix>
Sender: news@news.cern.ch (USENET News System)
Organization: CERN European Lab for Particle Physics
X-Newsreader: NN version 6.5.0 #9 (NOV)
Date: Fri, 18 Aug 1995 09:06:26 GMT