From 4748ed522196a66bc67f9a5a0163d7bd2def3065 Mon Sep 17 00:00:00 2001 From: debris Date: Thu, 26 Nov 2015 00:09:09 +0100 Subject: [PATCH] todos --- src/rlp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rlp.rs b/src/rlp.rs index a085e2fc2..3cb240734 100644 --- a/src/rlp.rs +++ b/src/rlp.rs @@ -243,6 +243,7 @@ impl RlpStream { } /// declare appending the list of given size + /// TODO: optimise insertion of empty list pub fn append_list<'a>(&'a mut self, len: usize) -> &'a mut RlpStream { // push new list let position = self.encoder.bytes.len(); @@ -356,6 +357,7 @@ impl BasicEncoder { } /// inserts list prefix at given position + /// TODO: optimise it, so it does not copy an array fn insert_list_len_at_pos(&mut self, len: usize, pos: usize) -> () { // new bytes let mut res: Vec = vec![];