-
Notifications
You must be signed in to change notification settings - Fork 91
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
compat: no MmapIO for windows 7 #509
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #509 +/- ##
==========================================
- Coverage 85.94% 85.92% -0.03%
==========================================
Files 31 31
Lines 4213 4213
==========================================
- Hits 3621 3620 -1
- Misses 592 593 +1 ☔ View full report in Codecov by Sentry. |
I really think you should change the default value for # Windows 7 doesn't support mmap, falls back to IOStream
const DEFAULT_IO_TYPE = if is_win7()
IOStream
else
MmapIO
end
is_win7() = Sys.iswindows() && Sys.windows_version().major <= 6 && Sys.windows_version().minor <= 1 The current version doesn't really fix anything: what makes the default and most commonly used |
@JonasIsensee Are you okay with this compatibility patch? For some reason, we (Suzhou Tongyuan) need to keep compatibility with some "strange" platforms, e.g., windows 7. If you don't want to get this patch in, we understand, and we'll instead start to maintain our internal fork version. |
src/JLD2.jl
Outdated
const DEFAULT_IOTYPE = if is_win7() | ||
IOStream | ||
else | ||
JLD2.MmapIO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be
JLD2.MmapIO | |
MmapIO |
I apologize for the late reply.. |
Thanks for merging! I'll use my privilege to make a patch release #514 |
Ensure win7 can be precompiled
Win7 and below systems use IOStream method to ensure pre-compilation correct.