Add a new
llGetNotecardLineFast
function with the same signature as
llGetNotecardLine
. This new *Fast version will not have a delay if the notecard being requested is already in the region asset cache.
Rationale
llGetNotecardLine
is infamously slow, with a built-in delay of 0.1s per line. This adversely impacts all sorts of scripts in Second Life, notably when scripts need to load user-customizable configuration (Furniture, etc.)
By introducing a new *Fast permutation of the function (Similar in style to
llSetLinkPrimitiveParamsFast
, etc.) we can allow any behavior that depends on the built-in delay to function as expected while giving creators the ability to opt-in to a faster method.
The new function would feature a delay (0.1s or similar) if the notecard being requested needs to be downloaded into the current region's asset cache. This is necessary as notecards can be referenced by asset ID, and presents a more transparent and fair representation of lookup cost.