Avoiding BinaryReader.ReadString() in C#?
<p>Good morning,</p>

<p>At the startup of the application I am writing I need to read about 1,600,000 entries from a file to a <code>Dictionary&lt;Tuple&lt;String, String&gt;, Int32&gt;</code>. It is taking about 4-5 seconds to build the whole structure using a BinaryReader (using a FileReader takes about the same time). I profiled the code and found that the function doing the most work in this process is <code>BinaryReader.ReadString()</code>. Although this process needs to be run only once and at startup, I would like to make it as quick as possible. Is there any way I can avoid <code>BinaryReader.ReadString()</code> and make this process faster?</p>

<p>Thank you very much.</p>
