]> git.baikalelectronics.ru Git - kernel.git/commit
unicode: cache the normalization tables in struct unicode_map
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Sep 2021 07:00:04 +0000 (09:00 +0200)
committerGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 11 Oct 2021 20:02:02 +0000 (17:02 -0300)
commitb7557f9b7f011d71b608b5334c3bda62db88c868
tree3cedb519da25bfe7e8c3cce48f03c47599ce953e
parenta6d306e9c91eac28bfc6040aa55b0b6e64bc5b36
unicode: cache the normalization tables in struct unicode_map

Instead of repeatedly looking up the version add pointers to the
NFD and NFD+CF tables to struct unicode_map, and pass a
unicode_map plus index to the functions using the normalization
tables.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
fs/unicode/utf8-core.c
fs/unicode/utf8-norm.c
fs/unicode/utf8-selftest.c
fs/unicode/utf8n.h
include/linux/unicode.h