Switched to reading the entire file into a buffer at the start.\nThis speeds it up a TON (like 100x).

This commit is contained in:
Jesse Beder
2009-02-01 20:48:43 +00:00
parent a6d5902ebf
commit f9c0725684
9 changed files with 72 additions and 75 deletions

View File

@@ -100,7 +100,7 @@ namespace YAML
// *****
// end of stream
if(INPUT.peek() == EOF)
if(!INPUT)
return EndStream();
if(INPUT.column == 0 && INPUT.peek() == Keys::Directive)