Garbage collection (crashing on Windows)
Mark Waddingham
mark at livecode.com
Fri Aug 19 15:22:31 EDT 2016
With the current implementation of the engine, the only reason using empty is faster than using pValue is because the latter requires a variable lookup, the former is a constant.
What are you using sValueCache for?
Sent from my iPhone
> On 19 Aug 2016, at 19:37, Mark Talluto <mark at canelasoftware.com> wrote:
>
>
>> On Aug 19, 2016, at 10:42 AM, Mark Waddingham <mark at livecode.com> wrote:
>>
>> command shareAndStoreKey @xArray, pKey, pValue
>> set the caseSensitive to true -- this is assuming your values are sensitive to case
>> if pValue is not among the keys of sValueCache then
>> put pValue into sValueCache[pValue]
>> end if
>> put sValueCache[pValue] into xArray[pKey]
>> end command
>
>
> Hi Mark,
>
> We have been doing:
> put empty into sValueCache[pValue] --as an optimization.
>
> How does this compare to:
> put pValue into sValueCache[pValue] --in terms of performance?
>
>
> Best regards,
>
> Mark Talluto
> livecloud.io
> canelasoftware.com
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list