realXtend/naali — Issue #408: Rewrite/explode AssetAPI::ParseAssetRef.
Author: juj
Created: 2012-03-05 11:11:31+00:00
State: open
Labels: Performance

The AssetAPI ParseAssetRef has become an extremely used utility throughout the whole Tundra codebase. It is called thousands of times for larger scenes. The function eagerly decomposes an asset ref to all its subparts, and uses several regexes to perform the query. In some scenes, this is starting to show up in profiles. (after #379, #332, #334 and #335)

Rewrite the function and split it into smaller utility functions which do less work to optimize the CPU-side work performed here.