Closed serprex closed 9 years ago
Nice, this already cuts down Functions.hs by 300kB and 9k lines. I think I'll land this and do 2 things:
compactSignature
s and map them to short names like dyn42
, dyn9
etc. later. This will cut down the names considerably, they're currently up to 122 characters long.foreign import
s into a separate module, perhaps this helps with GHC's memory usage some people are complaining about.Slowly the OpenGLRaw
and gl
packages converge more and more... :wink:
Two directions on compression:
Create a huffman table from the current set of functions & then rewrite getDynName to output the compression in base-53
Create the list of signatures before printing commands. Pass list to showCommand. Name the functions dyn1, dyn2, dyn3, etc