Csound Csound-dev Csound-tekno Search About

[Cs-dev] Memory allocation -- a radical suggestion

Date2009-12-30 18:54
Fromjohn ffitch
Subject[Cs-dev] Memory allocation -- a radical suggestion
At present there is a list memalloc_db that is maintained of all
memory allocated.  I have checked the current sources and this is only
used in debugging and then not in any detail.  This also means that
there is a spinlock in the memalloc code to protect this variable.

So, how about abandoning this list, and removing the locks, and the
maintenence of the list.  This should give a slight performance gain,
and a small memory size gain.

Or is that a step too far?

==John ffitch

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-12-30 21:25
FromVictor Lazzarini
SubjectRe: [Cs-dev] Memory allocation -- a radical suggestion
Sounds like a good idea.
Victor
On 30 Dec 2009, at 18:54, john ffitch wrote:

> At present there is a list memalloc_db that is maintained of all
> memory allocated.  I have checked the current sources and this is only
> used in debugging and then not in any detail.  This also means that
> there is a spinlock in the memalloc code to protect this variable.
>
> So, how about abandoning this list, and removing the locks, and the
> maintenence of the list.  This should give a slight performance gain,
> and a small memory size gain.
>
> Or is that a step too far?
>
> ==John ffitch
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast  
> and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net