Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

build: i18n: reduce on-disk size with small-icu by 1MB when using ICU 54 #8707

Closed
wants to merge 1 commit into from

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Nov 11, 2014

I mentioned this in #7676 (comment)

I'll see if I can squeeze any more space out as well.

@srl295
Copy link
Member Author

srl295 commented Nov 11, 2014

the source-file-exclusion only saves a few K, maybe up to 1MB in total depending on platform. May not be worth it for fragility.

Reduces space by about 1MB with ICU 54 (over without this patch).
Also trims a few other source files, but only conditional on the exact ICU
version used. This is to future-proof - a file that is unneeded now may
be needed in future ICUs.
@srl295 srl295 force-pushed the srl-v0.12-slimdown branch from f29b2f7 to bfdffa7 Compare November 12, 2014 06:35
@srl295
Copy link
Member Author

srl295 commented Nov 12, 2014

as of bfdffa7 sizes are:

  • Mac 10.10 full-icu
    • 43,588,664 bytes: v0.12 ea4dc7d ("upstream")
    • 43,585,016 bytes: with this patch bfdffa7
  • Mac 10.10 small-icu
    • 19,815,720 bytes: v0.12 ea4dc7d ("upstream")
    • 19,815,680 bytes: with this patch bfdffa7
  • Mac 10.10 none
    • 15,227,368 bytes: with this patch bfdffa7 OR v0.12 ea4dc7d ("upstream")
  • Win7 full-icu
    • 34,230,784 bytes: with this patch bfdffa7
    • 34.231,296 bytes: without this patch, v0.12
  • Win7 small-icu
    • 10,156,032 bytes: with this patch bfdffa7
    • 11,487,744 bytes: without this patch, v0.12
  • Win7 none
    • 7,313,408 bytes: with this patch bfdffa7
  • ( @trevnorris said that on Linux x64, the build sizes for normal, small and full are 14MB, 18MB and 38MB. For comparison)

@srl295
Copy link
Member Author

srl295 commented Nov 13, 2014

So this saves 1.3MiB in the windows binary with the 'new' default options. Probably worth while. In the future srl295#8 will investigate further slimdown.

@srl295
Copy link
Member Author

srl295 commented Nov 19, 2014

I'm going to merge this in another PR, into #8719

@srl295 srl295 closed this Nov 19, 2014
srl295 referenced this pull request in srl295/node-v0.x-archive Nov 19, 2014
srl295 referenced this pull request in srl295/node-v0.x-archive Nov 19, 2014
build: i18n: rebuild icu-small after merge of joyent#8707

* icudt54l.dat drops from 2.6MB to 1.3MB
@srl295 srl295 deleted the srl-v0.12-slimdown branch November 20, 2014 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants