From 8f7d879dae4f148f4fb40783886bc6e4aeb9e85e Mon Sep 17 00:00:00 2001 From: Alcaro Date: Fri, 21 Feb 2014 14:25:09 +0100 Subject: [PATCH] Copy this optimization from the decompressor. 21288ms -> 20547ms, 3% faster! --- rewind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewind.c b/rewind.c index 4be8959858..bd7fc444bf 100644 --- a/rewind.c +++ b/rewind.c @@ -326,7 +326,7 @@ bool state_manager_push_do(state_manager_t *state) num16s-=changed; *(compressed16++)=changed; *(compressed16++)=skip; - memcpy(compressed16, old16prev, changed*sizeof(uint16_t)); + for (int i=0;i