excessive cache writing

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
filbo
Posts: 647
Joined: Fri Jun 20, 2014 10:06 am

excessive cache writing

Post by filbo »

R'n'D writes .rocksndiamonds/cache/artworkinfo.cache on every single startup! Even if there are no changes at all (which is usually the case).

This probably isn't great for performance; moreso, flash devices don't like extra write burden.
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: excessive cache writing

Post by Holger »

Thanks for pointing me towards this issue. (And sorry for the late reply.)

There were two reasons for this behaviour:

1. It was not checked at all if the cache had to be updated or not, it was just always written after initializing artwork info.

2. There was an additional issue with non-existing artwork info config files invalidating artwork info cache entries (which is legal behaviour, for example, when just placing some graphics or sounds with the same file name as the original default files into the "graphics" or "sounds" directory to replace the default artwork, but without having a corresponding "graphincsinfo.conf" or "soundsinfo.conf" file containing explicit definitions for the replacement).

Both issues are fixed now, so no new cache file is written anymore if nothing has changed.
Post Reply