jsdom / tr46

An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing.
MIT License
32 stars 14 forks source link

Optimize mappingTable size #24

Closed kraynel closed 4 years ago

kraynel commented 4 years ago

Package size is currently 317kb.

The generated mappingTable.json alone is 253kb.

In this PR I optimize this file to be around 130kb (51% the original size):

I guess we could go a lot further. One way of drastically reducing the package size would be to build the mapping table during the postInstall phase and not package them.