migration/xbzrle: make xbzrle_encode_buffer little easier
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cutils: remove one unnecessary pointer operationutil/ | +4 | 3 replies | |
| 2/2 | migration/xbzrle: make xbzrle_encode_buffer little easier to readmigration/ | +73 | 5 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Dr. David Alan Gilbert | Juan Quintela |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH 0/2] migration/xbzrle: make xbzrle_encode_buffer little easier
Current xbzrle_encode_buffer() do everything in a big loop, which is a little difficult for audience to catch the logic.
We can refine the logic with:
* get the length of a run
* encode it
At the same time, I found the encoding and decoding function has some extra pointer operation. Removing this could save some code space.
Wei Yang (2):
cutils: remove one unnecessary pointer operation migration/xbzrle: make xbzrle_encode_buffer little easier to read
migration/xbzrle.c | 153 +++++++++++++++++++++------------------------ util/cutils.c | 8 +-- 2 files changed, 77 insertions(+), 84 deletions(-)
Signature · 1 line
2.19.1