arkouda icon indicating copy to clipboard operation
arkouda copied to clipboard

Look into weakref for python to track all pdarrays and objects that reference server-side objects

Open mhmerrill opened this issue 6 years ago • 3 comments

mhmerrill avatar Mar 26 '19 13:03 mhmerrill

weakef is so we can track it without bumping the python object reference count

mhmerrill avatar Mar 26 '19 13:03 mhmerrill

@mhmerrill I'm looking into https://github.com/Bears-R-Us/arkouda/issues/924 and trying to figure out if there's any places where objects referencing server-side objects are getting GC'd before we're expecting them too.

Could you say what the motivation for using weakref is? Is this related to wanting more control over when things are GC'd or just being able to track things on the client side without impacting GC?

ronawho avatar Feb 09 '22 18:02 ronawho

@mhmerrill I'm looking into #924 and trying to figure out if there's any places where objects referencing server-side objects are getting GC'd before we're expecting them too.

Could you say what the motivation for using weakref is? Is this related to wanting more control over when things are GC'd or just being able to track things on the client side without impacting GC?

@ronawho the motivation for weakref is because it does not bump the reference count so things can be freed/gc'd without interference.

mhmerrill avatar Feb 09 '22 20:02 mhmerrill