Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
BinaryReader and BinaryWriter use IBinaryStream interface, which causes lots of virtual calls on every primitive read/write.
Find out if we can force the JIT to specialize generated code for different implementations by making all IBinaryStream implementations struct and making reader/writer generic.