diff options
Implement a cache for the monthly view
Add a very simple cache, which is used to store the days that contain an
event or an appointment. This makes redrawing and browsing the calendar
panel much faster.
The cache has a size of 31 integers (which is equivalent to 124 bytes on
a 32 bit system and 248 bytes on a 64 bit system) and invalidates itself
if the current month has changed. If an item is added/changed/removed,
the cache needs to be invalidated manually by calling
calendar_monthly_view_cache_set_invalid(). Note that this will always
invalidate the whole cache, even if only one item at the last day of the
month was removed. This is a trade-off between simplicity and
efficiency.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test/data%25252525252525252525252525253fid%25252525252525252525252525253db526d46fae3c9c18b532f808687f3afdafbd1ce4%252525252525252525252525253fid%252525252525252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%2525252525252525252525253fid%2525252525252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%25252525252525252525253fid%25252525252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%252525252525252525253fid%252525252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%2525252525252525253fid%2525252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%25252525252525253fid%25252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%252525252525253fid%252525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%2525252525253fid%2525252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%25252525253fid%25252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1&id2%25252525253d7a75415a619bd6698f45ec24f696f7b9dbb3752c%252525253fid%252525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%2525253fid%2525253d86c465b0e50e1479e819f63c0bac86e7aec236a1%25253fid%25253d86c465b0e50e1479e819f63c0bac86e7aec236a1%253fid%253d86c465b0e50e1479e819f63c0bac86e7aec236a1%3fid%3d86c465b0e50e1479e819f63c0bac86e7aec236a1?id=7a75415a619bd6698f45ec24f696f7b9dbb3752c')
0 files changed, 0 insertions, 0 deletions