1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-23 06:42:24 +03:00
Commit Graph

2 Commits

Author SHA1 Message Date
Adam Erb
8c8c3dbcfa Add new inline mapping strategy to IdnaMappingTable (#7882)
* Add new inline mapping strategy to IdnaMappingTable

---------

Co-authored-by: Adam Erb <adam.erb@verafin.com>
2023-06-09 08:41:21 +01:00
Jesse Wilson
b6eeec4575 Implement a compact IDNA mapping table (#7789)
* Implement a compact IDNA mapping table

This is optimized for fast lookups and small code size. It also
avoids using a resource file, as that's not an option on Kotlin/JS.

The data is encoded with 3 ASCII strings, as described in the new
IdnaMappingTable class docs. I've got tests that confirm the compact
data is consistent with the simple implementation for all code points.

* Enforce maximum length invariants

* Disable animal sniffer in the build-time-only IDNA mapping module
2023-05-02 07:21:58 -04:00