forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…iaLang#42593) This PR makes `read!(s::IO,a::StridedArray)` call `unsafe_read`, if `a` has continous memory layout. Since most of the checks are type-based, I think this does speed up, esspecially when `lock = true`. BTW, the above dispatch for `read!(s::IO, a::Array{UInt8})` in L762 seems unnecessary, should we drop it? --------- Co-authored-by: Jameson Nash <[email protected]>
- Loading branch information
Showing
2 changed files
with
89 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters