Opened 9 years ago
Last modified 9 years ago
#13309 closed enhancement
[Patch] Caching and notifying preferences — at Version 1
| Reported by: | michael2402 | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 17.04 |
| Component: | Core | Version: | |
| Keywords: | gsoc-core | Cc: | Don-vip, bastiK, stoecker |
Description (last modified by )
Currently, there are many MapFrame.repaint() calls whenever properties change.
Part of this is because colors and other values are cached by each component seperately.
I added a new infrastructure that allows you to get a property and easily cache that result.
To get a property use:
new IntegerProperty("my.property", "123").get()
To cache the result, use:
prop = new IntegerProperty("my.property", "123"); // registers 123 as default value prop.get(); // lazy get and convert to int prop.get(); // get cached integer object
I added a new preference listener that listens to changes of one specific key to make this efficient.
Change History (2)
by , 9 years ago
| Attachment: | patch-preferences-listenable-2.patch added |
|---|
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.


