Skip to content

Conversation

@JeffBezanson
Copy link
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
end
else
A = read(s.io, elty, dims)
A = read!(s.io, Array{elty}(dims))
Copy link
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
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
Member Author

@yuyichao @Keno Interesting failure on win32 here.

deprecate `read(io, type, dims)`, fix #21450
@JeffBezanson JeffBezanson merged commit 1e95e1d into master Jul 10, 2017
@JeffBezanson JeffBezanson deleted the jb/iodeps branch July 10, 2017 03:44
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)

4 participants