On 06/14/2016 08:53 AM, oldk1331 wrote:
> Modify Cork to be a nullary function that returns constant makes
> compilation much faster and memory usage much smaller:
> 
>      Cork():List Record(corkcode:String,unicode:SI) == [ ....

Maybe better ...

CorkFun(): HashTable ... ==

Cork: HashTable := CorkFun()

That would be somewhat similar to what I do in my tex.spad

https://github.com/hemmecke/fricas/blob/master-hemmecke/src/algebra/tex.spad#L314

https://github.com/hemmecke/fricas/blob/master-hemmecke/src/algebra/tex.spad#L698

The table is filled at instantiation time of the domain.

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to