Skip to content

Commit 8bd0e0c

Browse files
committed
Rewrite the backend message parser
The owned variant of the old parser incurred a lot of allocation overhead, particularly for row data messages. Rewrite it so that it behaves like the borrowed parser, except that the message can optionally own any dynamically sized data it contains.
1 parent dfcaccf commit 8bd0e0c

File tree

5 files changed

+759
-883
lines changed

5 files changed

+759
-883
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ byteorder = "0.5"
1313
fallible-iterator = "0.1"
1414
hex = "0.2"
1515
md5 = "0.2"
16+
memchr = "0.1"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ extern crate byteorder;
1515
extern crate fallible_iterator;
1616
extern crate hex;
1717
extern crate md5;
18+
extern crate memchr;
1819

1920
use byteorder::{WriteBytesExt, BigEndian};
2021
use std::io;

0 commit comments

Comments
 (0)