Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Gmpfi: a black hole for memory?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Gmpfi: a black hole for memory?


Chronological Thread 
  • From: Alexander Kobel <>
  • To:
  • Cc: Marc Glisse <>
  • Subject: Re: [cgal-discuss] Gmpfi: a black hole for memory?
  • Date: Wed, 15 Dec 2010 10:21:42 +0100

Thanks, Marc, for your reply.

On 2010-12-15 10:03, Marc Glisse wrote:
On Wed, 15 Dec 2010, Alexander Kobel wrote:
I suspect that the CGAL::Gmpfi interval number type is severely
leaking memory.

So it is.

:-) Does that mean: "Uh, that's bad, but that guy's right - let's do something about it", or "Yeah, yeah, we all know, but nobody has enough time and motivation to fix this"?

Does using -DCGAL_GMPFR_NO_REFCOUNT reduce the leaking? (Note that it
isn't a real fix, it may just work around some of the leaky code paths)

Yes, this seems to work fairly well, with no leakage at all and minor speed impact.
In programs where the proper precautions are taken to avoid unnecessary copies, disabling the reference counting should not have a significant impact on the performance, right?


Cheers,
Alexander



Archive powered by MHonArc 2.6.16.

Top of Page