[Qemu-devel] [PULL 5/6] migration: reduce the count of strlen call

2015-07-15 Thread Juan Quintela
From: Liang Li 'strlen' is called three times in 'save_page_header', it's inefficient. Signed-off-by: Liang Li Reviewed-by: Juan Quintela Reviewed-by: Amit Shah Signed-off-by: Juan Quintela --- migration/ram.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mi

[Qemu-devel] [PULL 5/6] migration: reduce the count of strlen call

2015-07-15 Thread Juan Quintela
From: Liang Li 'strlen' is called three times in 'save_page_header', it's inefficient. Signed-off-by: Liang Li Reviewed-by: Juan Quintela Reviewed-by: Amit Shat Signed-off-by: Juan Quintela --- migration/ram.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mi