Commit f9b69144 added an extra peek ahead when processing a memref in raw2trace, in order to properly handle a signal delivered in the middle of a bb. This peek and subsequent putback with istream::seekg ends up causing performance problems for some istream implementations. We avoid that by doing our own buffering of the 1 or 2 entries that we peek in raw2trace.
Issue: #2708 (closed)