unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* freeing srcprops ?
@ 2007-01-17  0:22 Han-Wen Nienhuys
  2007-01-18 14:04 ` Han-Wen Nienhuys
  2007-01-18 23:20 ` Kevin Ryde
  0 siblings, 2 replies; 16+ messages in thread
From: Han-Wen Nienhuys @ 2007-01-17  0:22 UTC (permalink / raw)



Hello,

I'm doign some leak checking to see why LilyPond needs such obscene
amounts of memory. Looking through the valgrind leak table, I see mention 
of srcprops. In srcprop.c, I see:  


static size_t
srcprops_free (SCM obj)
{
  *((scm_t_srcprops **) SCM_SMOB_DATA (obj)) = srcprops_freelist;
  srcprops_freelist = (scm_t_srcprops *) SCM_SMOB_DATA (obj);
  return 0; /* srcprops_chunks are not freed until leaving guile */
}


why use a separate storage pool for srcprop objects?  If optimized storage
is needed, isn't it better to compress the srcprop a bit and use a 
double cell?


-- 
 Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-01-30 19:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17  0:22 freeing srcprops ? Han-Wen Nienhuys
2007-01-18 14:04 ` Han-Wen Nienhuys
2007-01-18 23:28   ` Kevin Ryde
2007-01-19 10:37     ` Han-Wen Nienhuys
2007-01-19 11:52     ` Han-Wen Nienhuys
2007-01-26 22:15       ` Kevin Ryde
2007-01-26 23:33         ` Han-Wen Nienhuys
2007-01-18 23:20 ` Kevin Ryde
2007-01-28  9:08   ` Neil Jerram
2007-01-29 11:39     ` Han-Wen Nienhuys
2007-01-29 21:35       ` Neil Jerram
2007-01-29 23:31         ` Han-Wen Nienhuys
2007-01-30 12:40           ` Ludovic Courtès
2007-01-30 19:14             ` Han-Wen Nienhuys
2007-01-30 12:21       ` Mikael Djurfeldt
2007-01-30 12:52         ` Han-Wen Nienhuys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).