Saturday, January 22, 2022
2 changes · master
Enhancements to existing features
This change removes unnecessary conversion steps when processing website assets and images, making those requests faster. Users should see quicker loading of images, avatars, and web pages, with reported performance gains of around 25% in the affected areas.
Original PR description
[IMP] Speed Imp: remove unnecessary base64 encode & decode Avoid to base64 encode, then decode to process assets and images for a ~25% speed improvement. Change image processing tool to work on images, rather than base64 encoded strings. Performance is ~25% faster on assets & images: /web/assets/...frontend.min.css: 13ms to 7ms, base64 enc/dec: 2 -> 0 /web/image/XML_ID: 10ms to 8ms, base64 enc/dec: 3 -> 0 /web/image/res.users/2/avatar_128: 40ms to 20ms, base64 enc/dec: 6 -> 2 Enterprise counterpart: https://www.github.com/odoo/enterprise/pull/23537
This update speeds up delivery of website assets and images by removing unnecessary conversion steps during processing. Users should see quicker page and image loading, with reported performance gains of around 25% for affected asset and image requests.
Original PR description
[IMP] Speed Imp: remove unnecessary base64 encode & decode
Avoid to base64 encode, then decode to process assets and images for a ~25% speed improvement.
Change image processing tool to work on images, rather than base64 encoded strings.
Renamed some "id" variables into res_id
Performance is ~25% faster on assets & images:
/web/assets/...frontend.min.css: 13ms to 7ms, base64 enc/dec: 2 -> 0
/web/image/XML_ID: 10ms to 8ms, base64 enc/dec: 3 -> 0
/web/image/res.users/2/avatar_128: 40ms to 31ms, base64 enc/dec: 4 -> 0