Use a cached byte[] preamble for Encoding.UTF8
authorJustin Van Patten <jvp@justinvp.com>
Sat, 25 Jul 2015 23:36:22 +0000 (16:36 -0700)
committerJustin Van Patten <jvp@justinvp.com>
Mon, 3 Aug 2015 16:15:39 +0000 (09:15 -0700)
commit74853cce7357b4d194f78ade2812de805dbc6379
treeddd4a035d9f2af4641fe237a48067a57183c5ed6
parent0a83c2fc30146b335a24c85de2a5ba33a72bdbdd
Use a cached byte[] preamble for Encoding.UTF8

Avoids allocations associated with GetPreamble() for the default and
commonly used Encoding.UTF8 encoding.
src/mscorlib/src/System/IO/StreamReader.cs