StringEncodings.jl icon indicating copy to clipboard operation
StringEncodings.jl copied to clipboard

Add optimized read! and and write methods

Open nalimilan opened this issue 5 years ago • 1 comments

https://github.com/JuliaStrings/StringEncodings.jl/pull/38 implements an optimized readbytes! method. The same approach could be used to make read! and write more efficient with arrays, probably by overloading Base.unsafe_read and Base.unsafe_write.

nalimilan avatar Jul 10 '20 15:07 nalimilan

Yes, normally IO should provide a unsafe_read and unsafe_write function, if they support optimized IO

vtjnash avatar Jun 29 '23 19:06 vtjnash