Skip to content

Ditch mmap - #57

Merged
jeromekelleher merged 2 commits into
tskit-dev:masterfrom
jeromekelleher:ditch-mmap
Dec 7, 2018
Merged

jeromekelleher merged 2 commits into
tskit-dev:masterfrom
jeromekelleher:ditch-mmap

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Removes the no_mmap flag from open, replacing with read_all.

The Python implementation still uses mmap under the hood and is still vulnerable to bus errors when the underlying file is truncated. We can resolve this problem later; this PR is concerned with stabilising the long-term API.

Jerome Kelleher added 2 commits December 7, 2018 11:32
We still use mmap as the default implementation, but this can be changed
in later versions.
@codecov

codecov Bot commented Dec 7, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #57 into master will decrease coverage by 0.14%.
The diff coverage is 97.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #57      +/-   ##
==========================================
- Coverage    98.5%   98.35%   -0.15%     
==========================================
  Files           7        7              
  Lines        1004     1036      +32     
  Branches       51       51              
==========================================
+ Hits          989     1019      +30     
- Misses         13       15       +2     
  Partials        2        2
Flag Coverage Δ
#C 98.35% <97.67%> (-0.15%) ⬇️
#python 96.72% <88.88%> (-0.35%) ⬇️
Impacted Files Coverage Δ
python/kastore/store.py 99.17% <100%> (ø) ⬆️
python/kastore/__init__.py 100% <100%> (ø) ⬆️
c/kastore.c 100% <100%> (ø) ⬆️
python/_kastoremodule.c 91.11% <75%> (-1.08%) ⬇️

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 c95b617...56223e8. Read the comment docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant