groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] caching result of charinfo::get_flags


From: Werner LEMBERG
Subject: [Groff] caching result of charinfo::get_flags
Date: Sat, 18 Dec 2010 16:31:42 +0100 (CET)

Colin, Daiki-san,


if there are a lot of character classes, the frequently used function
`charinfo::get_flags' can get expensive.  Any idea how to cache its
return value?  Essentially, it needs to be computed only once, but as
soon as `.class' is called again, it has to be recomputed (again, only
once)...

Perhaps calling `.class' should simply trigger recomputation of all
charinfos in the dictionary?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]