2c9d464389
After experiments with loading the whole file at once, and with decoding and parsing in separate thread, lazy reader turned to be the fastest/least memory intensive solution. Characters are now decoded in small batches. This improved parsing speed by ~20%. No global state anymore. Anchors are now zero terminated strings and TagDirectives are a simple array. Event structure was changed to prevent size increase. Minor fixes and improvements.
16 lines
414 B
D
16 lines
414 B
D
|
|
// Copyright Ferdinand Majerech 2011.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
///Tag directives.
|
|
module dyaml.tagdirective;
|
|
|
|
///Single tag directive. handle is the shortcut, prefix is the prefix that replaces it.
|
|
struct TagDirective
|
|
{
|
|
string handle;
|
|
string prefix;
|
|
}
|