[Opensim-dev] AssetLoader to selectively load assets based on timestamps ?
Alex Reatov
info at adeptsql.com
Wed May 19 11:25:50 UTC 2010
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.
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).
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
More information about the Opensim-dev
mailing list