8000 MAINT: Improve memory usage in PEP3118 format parsing by eric-wieser · Pull Request #11535 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Improve memory usage in PEP3118 format parsing #11535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2018

Conversation

eric-wieser
Copy link
Member

Previously a local Stream class would be defined every time a format needed parsing.
Classes in cpython create reference cycles, which create load on the GC.

This may or may not resolve gh-6511

@charris
Copy link
Member
charris commented Jul 9, 2018

Looks like the test needs for filter out a warning.

@eric-wieser eric-wieser self-assigned this Jul 22, 2018
Previously a local `Stream` class would be defined every time a format needed parsing.
Classes in cpython create reference cycles, which create load on the GC.

This may or may not resolve numpygh-6511
@codecov-io
Copy link
codecov-io commented Jul 23, 2018

Codecov Report

Merging #11535 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11535      +/-   ##
==========================================
+ Coverage    85.7%   85.71%   +0.01%     
==========================================
  Files         327      327              
  Lines       81985    81994       +9     
==========================================
+ Hits        70264    70282      +18     
+ Misses      11721    11712       -9
Impacted Files Coverage Δ
numpy/tests/test_ctypeslib.py 88.88% <100%> (+0.79%) ⬆️
numpy/core/_internal.py 81.21% <100%> (ø) ⬆️
numpy/ctypeslib.py 80.39% <0%> (+5.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c92ddf...e0fb54f. Read the comment docs.

@tylerjered
8000
dy
Copy link
Contributor

I'm pretty certain the codecov message spam is because the PR feature branch hasn't been rebased on the latest master branch, which contains the config settings to disable these comments. So, the codecov service is enabled but doesn't see those settings in this PR yet.

@eric-wieser
Copy link
Member Author

@charris: Good to go?

@charris charris merged commit b5e01bc into numpy:master Aug 4, 2018
@charris
Copy link
Member
charris commented Aug 4, 2018

Thanks Eric.

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

Successfully merging this pull request may close these issues.

np.ctypeslib.as_array leaks memory when used on a pointer
4 participants
0