dablooms icon indicating copy to clipboard operation
dablooms copied to clipboard

Can't delete Go bloom filter

Open JakeAustwick opened this issue 10 years ago • 1 comments

Is there currently no way to delete a Go bloom filter? https://github.com/bitly/dablooms/blob/master/godablooms/dablooms.go#L44

Am I also correct in thinking this memory will never get GC'ed, because it's in C?

JakeAustwick avatar Apr 14 '14 02:04 JakeAustwick

Not explicitly, no. That destroy() method you linked to will execute when Go's garbage collector decides to clean up that object.

When nothing references the bloom filter pointer it will (eventually) be GCd.

mreiferson avatar Apr 14 '14 15:04 mreiferson