Hi everyone,

Currently we're using the ICU library in our implementation of the JS Intl
API.  We're also finding ourselves in the need of using ICU for other
things inside Gecko as well.  Over in bug 915735, I've been working on a
number of strategies to make the ICU code callable form both mozjs.dll and
xul.dll.  It looks like the approach that we're going to take it to compile
ICU as a shared library everywhere that mozjs is built as a shared library
(which means Windows in the default build configuration.)

Here is the summary of what this patch does:

1. It adds three DLLs for ICU, which are delayloaded from both mozjs.dll
and xul.dll (that is, when the first xul.dll consumer lands!)
2. It adds about 300KB to our download size.
3. It does not affect the warm startup performance.
4. It slightly improves the cold startup performance.
5. It makes code that lives inside libxul able to use ICU.  Please see the
dependency graph of that bug for a list of features that will benefit from
this.

My patch is currently up for review on that bug and I'm planning to land it
when I get reviews.  If you have any questions or concerns, please let me
know.

Cheers,
--
Ehsan
<http://ehsanakhgari.org/>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to