Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/export/idna: make more space for mapping index
This prepares for an upcoming Unicode upgrade. Beyond Unicode 13 the size of mappings will grow beyond what can be represented in the allocated 13 bits. Instread of doubling the size of info, we introduce a table of indices into the mappings data. This also allows us to remove the length byte, reducing the overhead of introducing this new table. This change allows for about a 5x growth of the number of mappings, which should suffice for the foreseeable future. Change-Id: Id475dc2473145a1f36bd83b983fa4aa170df6206 Reviewed-on: https://go-review.googlesource.com/c/text/+/501515 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
- Loading branch information