Modify

Opened 15 years ago

Closed 15 years ago

#1906 closed enhancement (fixed)

[Patch?] WMS-Plugin: Implement caching

Reported by: stoecker Owned by: framm
Priority: minor Milestone:
Component: Plugin Version:
Keywords: Cc:

Description

The WMS plugin should cache the downloaded pictures.

Attachments (1)

Cache for WMS.patch (7.4 KB ) - added by xeen 15 years ago.
Simple Cache

Download all attachments as: .zip

Change History (7)

comment:1 by stoecker, 15 years ago

Lakewalker already has code which does tile caching.

comment:2 by RussNelson, 15 years ago

What should the caching policy be? keep no more than a given size? keep no more than a given count? keep no longer than a certain time?

comment:3 by stoecker, 15 years ago

I would suggest size and time. So
if older than xxx --> delete
if more than xxx bytes --> delete oldest

I think lakewalker uses same strategy.

by xeen, 15 years ago

Attachment: Cache for WMS.patch added

Simple Cache

comment:4 by xeen, 15 years ago

Summary: WMS-Plugin: Implement caching[Patch?] WMS-Plugin: Implement caching

This is a simple cache class that encapsulates image getting and saving. The grabber needs to invoke it manually by passing an (unique) identifier. It automatically discards old files but it doesn't clean up automatically.

Default values are 40 MBytes or older 5 days, whichever comes first. Can be overwritten though using wmsplugin.cache.size (in Bytes) and wmsplugin.cache.expire (in ms). I've tested it and it speeds up displaying if an image is cached (well, that was expected) but unfortunately doesn't help with the "Oberpfalz Performance" and I have no idea why.

comment:5 by anonymous, 15 years ago

The display performance could probably be increased a lot when the current display is buffered. I think ATM every operation is done for each refresh (i.e. aligning pics, converting pics, scaling pics, ...). All of this is useless overhead when nothing changed. See #1954.

comment:6 by anonymous, 15 years ago

Resolution: fixed
Status: newclosed

Applied but not yet uploaded as plugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.