[Opensim-dev] AssetLoader to selectively load assets based on timestamps ?
Justin Clark-Casey
jjustincc at googlemail.com
Wed May 19 22:13:18 UTC 2010
Alex Reatov wrote:
> Hello,
>
> The AssetLoader uploads all pre-defined assets to the database on each
> startup, unless the feature is disabled in the config file. The
> proposed change is to keep in the DB a dummy asset with a timestamp in
> it, attempt to read that asset in AssetLoader, then load only those
> XML files that have been modified since that date. The updated timestamp asset
> is stored back after AssetLoader completes the loading. When the
> timestamp asset is not present, AssetLoader would perform the full loading
> as it does now.
Why is a dummy asset required - wouldn't the real asset always be in the db after the first run?
>
> This way we can avoid loading the entire asset library every time,
> without actually disabling it. The feature can be controlled by either
> adding another config parameter "ForceAssetLoader=1" (alongside with
> DisableAssetLoading or whatever its called) or by replacing the
> existing setting with something like AssetLoaderMode={none|full|auto}
> (not implemented in the code below).
It would be nice not to implement yet another config parameter. Why would one want to force a load if the intelligent loader deals with all situations?
>
> The modified code is available as branch "asset-loader" at my github fork:
>
> git at github.com:AlexRa/opensim-mods-Alex.git
>
> It is NOT TESTED at the moment and I don't ask anybody to debug it for
> me, but would like to hear opinions whether this feature would be
> welcome and should I proceed with it.
>
> A copy of this post is now also on the Mantis:
>
> http://opensimulator.org/mantis/view.php?id=4694
>
>
> Best regards,
>
> AlexRa
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
--
Justin Clark-Casey (justincc)
http://justincc.org
http://twitter.com/justincc
More information about the Opensim-dev
mailing list