zucchini performance compared to courgette

326 views
Skip to first unread message

Daolin Liu

unread,
May 2, 2023, 8:05:43 PM5/2/23
to Chromium-dev
Hi,

I use courgette to generate the patch of sk_sp<SkData> in my own purpose with old version 104. I notice that zucchini is used now. Can someone tell me the performance improvement about the diff data generation time?My SKP is about 100K to 10M generated frequently. I use Perf tool and find that the bsdiff::CreateBinaryPatch() took too many time, so I want to switch to zucchini in case there will be a big improvement (Because I also need to change the code to support Apply function in another side, so I cannot change the whole code ASAP to verify the performance with
zucchini   ).

Thanks,
Dorian

Samuel Huang

unread,
May 2, 2023, 10:56:45 PM5/2/23
to daoshu...@gmail.com, Chromium-dev
Hi Dorian,

The main advantages of Zucchini over Courgette are (compressed) patch size, patch-application memory, and modernity. In terms of patch generation, Zucchini isn't significantly faster than Courgette.

Both Courgette and Zucchini are command line tools, so perhaps you can compare their speeds by direct timing? Note that these tools are unsuitable for real-time applications

Meanwhile, Zucchini-gen has a -raw setting that should be a bit faster (but offers worse patch size) if you're patching binary formats that Zucchini understands (e.g., {PE, ELF, DEX} files).

--
Samuel Huang

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/1c49d26f-88bb-41e8-8a2e-93d3f0d67b48n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages