jsdom / tr46

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

Further optimize mappingTable size #57

Open shrinktofit opened 3 months ago

shrinktofit commented 3 months ago

This PR should reduce about 7KB(139KB ->132KB). The idea is simple: most ranges of rows in the table are small, which can be represented by [start, difference] in comparison with [start, end].