--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jyCZ_nbKOyJiznyQu4%2BHHem8q5swifeO3Zmk1e2usayVA%40mail.gmail.com.
FWIW, the last time I looked at this, the most likely gains looked to be from tweaking things in the generated bindings. Functions generated for bindings generally aren't very large, but there's a lot of them, so even saving a few bytes can end up reducing binary size.Daniel
On Thu, Mar 1, 2018 at 12:27 AM Kentaro Hara <har...@chromium.org> wrote:
HiI've learned that this tool visualizes the breakdown of Chrome's binary on Android.The result looks very interesting!- Blink (i.e., "WebKit") is the largest component in Chrome's binary. However, Blink consumes only 16% of Chrome's binary. This means that even if we reduced Blink by 50%, it would reduce Chrome's binary only by 8%.- Realistically it would not be feasible to reduce Blink by 50%. Even if we drop the whole modules/ (by making modules/ dynamically pluggable), it will reduce only 1.4 MB, which is only 3% of Chrome's binary.- Generated code (i.e., "/blink/bindings/" and "/blink/core/") consumes 1.9 MB. This is not small but is only 4% of Chrome's binary.Overall my takeaway is: It seems like there is no low-hanging fruit from the Blink perspective. If we want to reduce 10% from Chrome's binary by reducing Blink, we'll need to invent yet another very lightweight rendering engine :)(Note: I'm not saying that Blink doesn't need to care about the binary size. I'm just saying that it's hard to come up with a meaningful binary reduction project in Blink.)--Kentaro Hara, Tokyo, Japan
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
I've also found that generated code is a promising spot to look for savings. You can generate code faster than writing it :). Refactoring generated code to generate less, or to generate functions that can be identical-code-folded can result in noticeable savings. Of Blink's ~9mb, 2mb is from generated code.
https://agrieve.github.io/chrome/supersize-chrome-android-jan-04-2018/console.txt
Thanks for the signal boost :)Instructions for generating such reports are here:One thing not covered by the visualization are module dependencies. E.g. how many //components and //third_party directories are there because of blink? (not rhetorical, I actually don't know).I've also found that generated code is a promising spot to look for savings. You can generate code faster than writing it :). Refactoring generated code to generate less, or to generate functions that can be identical-code-folded can result in noticeable savings. Of Blink's ~9mb, 2mb is from generated code.
On Thu, Mar 1, 2018 at 12:50 AM, Daniel Cheng <dch...@chromium.org> wrote:
FWIW, the last time I looked at this, the most likely gains looked to be from tweaking things in the generated bindings. Functions generated for bindings generally aren't very large, but there's a lot of them, so even saving a few bytes can end up reducing binary size.Daniel
On Thu, Mar 1, 2018 at 12:27 AM Kentaro Hara <har...@chromium.org> wrote:
HiI've learned that this tool visualizes the breakdown of Chrome's binary on Android.The result looks very interesting!- Blink (i.e., "WebKit") is the largest component in Chrome's binary. However, Blink consumes only 16% of Chrome's binary. This means that even if we reduced Blink by 50%, it would reduce Chrome's binary only by 8%.- Realistically it would not be feasible to reduce Blink by 50%. Even if we drop the whole modules/ (by making modules/ dynamically pluggable), it will reduce only 1.4 MB, which is only 3% of Chrome's binary.- Generated code (i.e., "/blink/bindings/" and "/blink/core/") consumes 1.9 MB. This is not small but is only 4% of Chrome's binary.Overall my takeaway is: It seems like there is no low-hanging fruit from the Blink perspective. If we want to reduce 10% from Chrome's binary by reducing Blink, we'll need to invent yet another very lightweight rendering engine :)(Note: I'm not saying that Blink doesn't need to care about the binary size. I'm just saying that it's hard to come up with a meaningful binary reduction project in Blink.)--Kentaro Hara, Tokyo, Japan
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsubsc...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jyCZ_nbKOyJiznyQu4%2BHHem8q5swifeO3Zmk1e2usayVA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jxkY-H1UJcfWQ0da_uuOtwGjmrDdFPU7y2t3p7PKJD%3DDw%40mail.gmail.com.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABg10jxkY-H1UJcfWQ0da_uuOtwGjmrDdFPU7y2t3p7PKJD%3DDw%40mail.gmail.com.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/binary-size/CABiQX1XoeURhQDFYuF_OA7w6S283VZAieA1pE7snp9Qsb3-zZg%40mail.gmail.com.You received this message because you are subscribed to the Google Groups "binary-size" group.
To unsubscribe from this group and stop receiving emails from it, send an email to binary-size+unsubscribe@chromium.org.
To post to this group, send email to binar...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architecture-dev+unsub...@chromium.org.
To post to this group, send email to platform-architecture-dev@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABc02_JejC6H090xQ4Yux%3DxyrKTZy83pA29ERv5UmQO%3DnFJ%2BJg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CABc02_JejC6H090xQ4Yux%3DxyrKTZy83pA29ERv5UmQO%3DnFJ%2BJg%40mail.gmail.com.