Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.conv;
- import std.stdio;
- import std.datetime;
- import orange.core._;
- import orange.serialization._;
- import orange.serialization.archives._;
- struct A {
- int x;
- }
- struct Foo
- {
- A[string] a;
- }
- void main()
- {
- Foo foo;
- foreach (a; 'a' .. 'z')
- foreach (b; 'a' .. 'z')
- foreach (c; 'a' .. 'z')
- foo.a[to!string(a) ~ to!string(b) ~ to!string(c)] = A();
- auto archive = new XmlArchive!(char); // create an XML archive
- auto serializer = new Serializer(archive); // create the serializer
- auto sw = StopWatch(AutoStart.yes);
- serializer.serialize(foo);
- writeln(sw.peek.seconds);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement