[Top][All Lists]
[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
- [Groff] caching result of charinfo::get_flags,
Werner LEMBERG <=
- Re: [Groff] caching result of charinfo::get_flags, Werner LEMBERG, 2010/12/20
- Re: [Groff] caching result of charinfo::get_flags, Daiki Ueno, 2010/12/20
- Re: [Groff] caching result of charinfo::get_flags, Werner LEMBERG, 2010/12/21
- Re: [Groff] caching result of charinfo::get_flags, Daiki Ueno, 2010/12/21
- Re: [Groff] caching result of charinfo::get_flags, Werner LEMBERG, 2010/12/21
- Re: [Groff] caching result of charinfo::get_flags, Werner LEMBERG, 2010/12/21
- Re: [Groff] caching result of charinfo::get_flags, Werner LEMBERG, 2010/12/21