diff options
| author | hallgren <hallgren@chalmers.se> | 2015-01-06 19:57:24 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2015-01-06 19:57:24 +0000 |
| commit | 0694a915d2edbaba77e8b3bb2739b553b3f120d4 (patch) | |
| tree | 8d10f4b7b45a4d9d62b22d995e44c86e40830eba /css | |
| parent | cbd873839b98b107cdb7afca7aa687f7d775d371 (diff) | |
Translating linearization functions to Haskell: significant code size reductions
+ Instead of including lists of parameter values generated by GF, generate
code to enumerate parameter values (in the same order as GF). This seems
to give a factor of 2-3 code size reduction in the Phrasebook (e.g.
from 84MB to 25MB for Hin, from 338MB to 154MB for Fre).
+ Deduplicate table entries, i.e. convert "table [..,E,..,E,..,E,..]" into
"let x = E in table [..,x,..,x,..,x,..]". This gives even more significant
code size reduction in some cases, e.g. from 569MB to 15MB for
PhrasebookFin.
All phrasebook languages can now be converted to compilable Haskell code,
except PhrasebookPes, which still has the name clash problem.
Diffstat (limited to 'css')
0 files changed, 0 insertions, 0 deletions
