Commit Graph

379 Commits

Author SHA1 Message Date
Erick Tryzelaar
6b2adccf60 speed up the tests to 249MB/s (!!) by copying over the MyMemWriter1
for some reason, having MyMemWriter1 in scope makes everything much
faster.
2014-09-07 01:19:36 -07:00
Erick Tryzelaar
bb361086b3 Inline and export json string escaping functions 2014-09-07 01:07:45 -07:00
Erick Tryzelaar
02bcb1c616 Bump up the json::to_vec mem writer buf size 2014-09-07 01:07:11 -07:00
Erick Tryzelaar
c4d7e4c208 properly test manual escaped and non-escaped logs 2014-09-07 01:04:39 -07:00
Erick Tryzelaar
12e8920810 Hardcode the timestamp to simplify tests 2014-09-07 01:02:19 -07:00
Erick Tryzelaar
c77d814685 Clean up serde2_macros 2014-09-06 23:24:11 -07:00
Erick Tryzelaar
1154345316 minor cleanup 2014-09-06 21:11:38 -07:00
Erick Tryzelaar
205f8aaa51 speed up serde2's json serialization to 180MB/s 2014-09-06 21:11:29 -07:00
Erick Tryzelaar
e2e395e8d0 Initial version of bench_log for serde2 2014-09-06 20:44:53 -07:00
Erick Tryzelaar
e2c6bf5119 Ignore the Cargo.lock file 2014-09-06 20:42:49 -07:00
Erick Tryzelaar
0cd64bfb14 Move the benchmarks into a benches/ directory 2014-09-06 20:41:13 -07:00
Erick Tryzelaar
d9932bc96a Merge pull request #4 from kvark/update
Updated non_snake_case and struct lifetimes for the latest Rust
2014-09-05 11:48:31 -07:00
kvark
6b62229dae Updated non_snake_case and struct lifetimes for the latest Rust 2014-09-04 21:57:13 -04:00
Erick Tryzelaar
3a5424b13c add serde2_macros 2014-09-03 07:13:33 -07:00
Erick Tryzelaar
8e4684bfef More cleanup of serde2 2014-09-02 07:39:02 -07:00
Erick Tryzelaar
9fe405319e More cleanup 2014-09-01 15:08:34 -07:00
Erick Tryzelaar
a624d05afa simplify down serde2 2014-09-01 14:52:19 -07:00
Erick Tryzelaar
3fb863475b checkpoint 2014-09-01 14:41:25 -07:00
Erick Tryzelaar
01716fbdcf SerializeState -> VisitorState 2014-09-01 13:39:54 -07:00
Erick Tryzelaar
4310645c7e factor out serde2 2014-09-01 13:39:00 -07:00
Erick Tryzelaar
34c38cf3a5 Experimenting with another serialization formulation 2014-09-01 13:14:56 -07:00
Erick Tryzelaar
3a6eb83da6 typarameterize Serializer 2014-09-01 13:14:52 -07:00
Erick Tryzelaar
dbbb016ada update Cargo.toml 2014-09-01 13:14:52 -07:00
Erick Tryzelaar
a24075559f Move the Deserializer typarams onto from the method to the Deserializable trait 2014-08-19 15:18:47 -07:00
Erick Tryzelaar
25891838c4 revert the json i64/u64 support for now 2014-08-18 07:41:03 -07:00
Erick Tryzelaar
aff53e8dd4 allow the deserializer to optionally handle missing fields
This allows json to deserialize missing values as a `null`.
2014-08-18 07:40:36 -07:00
Erick Tryzelaar
c6d28afb6f add a "ignore_field" handler when a deserializable is skipping a field 2014-08-18 07:40:15 -07:00
Erick Tryzelaar
45e8bd6834 change error handlers to be mutable 2014-08-18 07:39:34 -07:00
Erick Tryzelaar
b09c6f3a87 remove bench_bytes 2014-08-15 13:21:15 -07:00
Erick Tryzelaar
6cd71e3e1d deserializing from maps should ignore unknown values 2014-08-15 09:02:30 -07:00
Erick Tryzelaar
d98aaaa54d Fix the docstrings and doctests 2014-08-15 08:13:20 -07:00
Erick Tryzelaar
111b916abb Export {S,Des}erializ{er,able} from serde module 2014-08-15 08:07:48 -07:00
Erick Tryzelaar
f967a77a80 add tests to deserializing sequences into a tuple 2014-08-14 19:08:41 -07:00
Erick Tryzelaar
5892d4fd67 implement to_json for most tuples 2014-08-14 19:03:51 -07:00
Erick Tryzelaar
dce88b74da Fix deserializing a tuple from a sequence 2014-08-14 19:03:23 -07:00
Erick Tryzelaar
9d1f777282 Share => Sync 2014-08-14 09:38:19 -07:00
Erick Tryzelaar
98aa2e7884 Flesh out error handling 2014-08-06 22:24:06 -04:00
Erick Tryzelaar
005b124cd3 simplify error reporting 2014-08-05 23:02:15 -04:00
Erick Tryzelaar
14d2254b2b Remove unused macro 2014-08-05 22:41:27 -04:00
Erick Tryzelaar
6f03528987 Fix an infinite loop in serializing boxed types 2014-08-04 22:31:07 -04:00
Erick Tryzelaar
00c01944cf add impls for {Hash,Tree}Sets 2014-08-04 16:53:21 -07:00
Erick Tryzelaar
8d188747b8 Return an error type instead of unwrapping in the vec serializer 2014-08-04 16:39:21 -07:00
Erick Tryzelaar
6357c56674 implement Serializable/Deserializable for box types 2014-08-04 16:38:43 -07:00
Erick Tryzelaar
d689bc8b85 initial support for more full error messages 2014-08-03 12:35:15 -07:00
Erick Tryzelaar
499638eccd simplify deserializing a value from a primitive 2014-08-03 12:34:57 -07:00
Erick Tryzelaar
dbc1cbcbfb implement bench_log::bench_deserializer 2014-08-02 16:06:05 -07:00
Erick Tryzelaar
5298bf0301 remove dead code 2014-08-02 15:46:07 -07:00
Erick Tryzelaar
62eda3e19f use #[deriving_deserializable] everywhere 2014-08-02 15:42:49 -07:00
Erick Tryzelaar
9d43fe43a9 json should work with large integers 2014-08-02 15:40:08 -07:00
Erick Tryzelaar
d68710ea09 fix improper deserializing structs-as-maps 2014-08-02 15:39:16 -07:00