Talk:Read Note Card Configuration: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
observations on script
(No difference)

Revision as of 04:48, 17 December 2013

Observations

  1. if(llSubStringIndex(data, "#") != 0) <<== This involves a byte-by-byte search for '#', even if none exists. Better to examine the first byte only, but do a STRING_TRIM first
  2. notecardQueryId = llGetNotecardLine(configurationNotecardName, ++line); <<== this can be done earlier in the dataserver event, to gain time from background processing by the server
  3. string name = llGetSubString(data, 0, i - 1); <<== confusing choice of data name for this application, which is processing avatar names
  4. There's no point having a user defined function that is only called once. In fact both UDF's can easily be avoided, providing savings in script size.

Omei Qunhua 03:48, 17 December 2013 (PST)