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.
14 lines
394 B
D
14 lines
394 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)
|
|
|
|
///YAML tag.
|
|
module dyaml.tag;
|
|
|
|
import dyaml.zerostring;
|
|
|
|
///YAML tag (data type) struct. Encapsulates a tag to save memory and speed up comparison.
|
|
alias ZeroString!"Tag" Tag;
|