Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

the memory is leak when using pickle.load(MultiClusterInde object) #30

Open
liuchenbaidu opened this issue Apr 28, 2020 · 0 comments
Open

Comments

@liuchenbaidu
Copy link

python: 3.6
os: ubuntu
numpy:1.16.1
scipy:1.0.0

cp = ci.MultiClusterIndex(features, data_to_return)
with open('cluterIndex.bin', 'wb') as fh_out:
pickle.dump(cp, fh_out)

obj_file = 'cluterIndex.bin'
def test_memory_leak(obj_file):
while True:
with open('cluterIndex.bin', 'rb') as file_:
cp =pickle.load(file_)
if name == 'main':
test_memory_leak(obj_file )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant