PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > Pool for pointers
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Pool for pointers

Réponse
 
LinkBack Outils de la discussion
Vieux 04/02/2008, 16h53   #1
Morris Dovey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pool for pointers

vardhan wrote:

> I have a requirement to implement a memory pool meant for storing
> pointers only (which constiture an iterator over an array type data
> structure). Heap allocations are to be kept to a minimum (e.g. only
> while expanding the pool size). Memory for an instance of an iterator
> should be contiguous ideally, but since this may not always be
> possible a block based allocation could be thought of. This however
> adds an overhead to maintain a linked list, free list etc. Also no
> list of pointers should be created outside the pool as this
> constitutes heap allocation. Is there some literature which can
> address this specific problem in terms of the possible approaches?
> Maybe more generically - methods for contiguous dynamic memory
> allocation, given a certain usage profile?


More info whould . It sounds as if you could use anything
from an array of pointers to an array or linked list of iterator
structures, depending on your specific requirements.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto
  Réponse avec citation
Vieux 04/02/2008, 17h27   #2
vardhan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Pool for pointers

Hi,

Im not sure if this is the righ forum for this question. Pls redirect
me to the correct forum in that case.

I have a requirement to implement a memory pool meant for storing
pointers only (which constiture an iterator over an array type data
structure). Heap allocations are to be kept to a minimum (e.g. only
while expanding the pool size). Memory for an instance of an iterator
should be contiguous ideally, but since this may not always be
possible a block based allocation could be thought of. This however
adds an overhead to maintain a linked list, free list etc. Also no
list of pointers should be created outside the pool as this
constitutes heap allocation. Is there some literature which can
address this specific problem in terms of the possible approaches?
Maybe more generically - methods for contiguous dynamic memory
allocation, given a certain usage profile?

thanks for your advice,
Vardhan
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h49.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,06849 seconds with 10 queries