Skip to content

Fix #322: Optimize size of case_mapping table

Raymond Toy requested to merge issue-322-optimize-case-mapping-size into master

Instead of storing a pointer to each subtable, create a single large array containing each subtable. Then the case_mapping table can be an array of offsets into the single large array where each unique mapping subtable is stored. This cuts the size of the case_mapping table by half.

To do this, modify dump-case-mapping-table to create the tables appropriately. Then use this to regenerate "case-mapping.c".

Finally, update case-mapping-entry to extract the desired entry from the table.

Edited by Raymond Toy

Merge request reports