Skip to content
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

some I/O deprecations #22456

Merged
merged 1 commit into from
Jul 10, 2017
Merged

some I/O deprecations #22456

merged 1 commit into from
Jul 10, 2017

Conversation

JeffBezanson
Copy link
Sponsor Member

@JeffBezanson JeffBezanson commented Jun 21, 2017

change read(::IO, ::Ref) to read!, fix fix #21592

deprecate read(io, type, dims), fix #21450

@JeffBezanson JeffBezanson added deprecation This change introduces or involves a deprecation io Involving the I/O subsystem: libuv, read, write, etc. labels Jun 21, 2017
@tkelman tkelman added the needs news A NEWS entry is required for this change label Jun 21, 2017
@JeffBezanson JeffBezanson removed the needs news A NEWS entry is required for this change label Jun 21, 2017
@@ -862,7 +862,7 @@ function deserialize_array(s::AbstractSerializer)
end
end
else
A = read(s.io, elty, dims)
A = read!(s.io, Array{elty}(dims))
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vector{elty} will probably be significantly faster

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The number of dimensions isn't known.

@JeffBezanson
Copy link
Sponsor Member Author

@yuyichao @Keno Interesting failure on win32 here.

deprecate `read(io, type, dims)`, fix #21450
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation io Involving the I/O subsystem: libuv, read, write, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

read(::IO, ::Ref) should be a method of read! deprecate read(io, type, dims)
3 participants