Opened 12 years ago

Closed 12 years ago

#768 closed defect/bug (fixed)

Cache image data in gtk graphics driver

Reported by: tegzed Owned by: KaZeR
Priority: major Milestone:
Component: core Version: git master
Severity: Keywords:



I noticed that the gtk_drawing_area graphics driver keeps opening image files at runtime. With a simple caching algorithm constant filesystem operations and image decompression can be avoided which improves performance. On map areas with a lot of POI icons this can save large amount of cpu time. The attached patch stores cached uncompressed image data in a hash map avoiding unnecessary repeated image loading.

Attachments (1)

gtk_drawing_area_img_cache.diff (4.3 KB) - added by tegzed 12 years ago.
added some cleanup code

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by tegzed

added some cleanup code

comment:1 Changed 12 years ago by woglinde

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.