Open sl-service-account opened 1 year ago
Lucia Nightfire commented at 2023-01-24T12:28:59Z, updated at 2023-01-26T04:02:08Z
I mentioned the need for a llLinksetDataFindCountKeys() function as part of https://jira.secondlife.com/browse/BUG-232935 but it is great to have an explicit request.
Spidey Linden commented at 2023-01-25T19:17:34Z
Issue accepted. We have no estimate when it may be implemented. Please see future release notes for this fix.
How would you like the feature to work?
Function syntax:
integer llLinksetDataFindKeysCount(string pattern);
The function is called with a regex (similar to the pattern used in llLinksetDataFindKeys() function).
Return Value: The number of keys found matching the regex pattern.
Why is this feature important to you? How would it benefit the community?
Currently to get a count of keys matching a specific pattern a list must be generated into memory using llLinksetDataFindKeys(string pattern, start, end), and a separate function call to llGetListLength(list name) against the return to to get this value.
If no other manipulation is being done at that time against the list of keys return, that is generally a waste of the memory resources and extra work by the script by calling the extra function to do part of the work.
The overall benefit at large is that this would vastly simplify getting a simple count of matching keys when that is all one is needing at a particular time.
Links
Related
Duplicates
Original Jira Fields
| Field | Value | | ------------- | ------------- | | Issue | BUG-233242 | | Summary | New Function: llLinksetDataFindKeysCount() | | Type | New Feature Request | | Priority | Unset | | Status | Accepted | | Resolution | Accepted | | Reporter | Anna Salyx (anna.salyx) | | Created at | 2023-01-24T03:03:52Z | | Updated at | 2023-03-16T00:18:41Z | ``` { 'Build Id': 'unset', 'Business Unit': ['Platform'], 'Date of First Response': '2023-01-24T06:28:59.020-0600', 'How would you like the feature to work?': 'Function syntax:\r\n\r\n integer llLinksetDataFindKeysCount(string pattern);\r\n\r\nThe function is called with a regex (similar to the pattern used in llLinksetDataFindKeys() function). \r\n\r\nReturn Value: The number of keys found matching the regex pattern.\r\n', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'Target Viewer Version': 'viewer-development', 'Why is this feature important to you? How would it benefit the community?': 'Currently to get a count of keys matching a specific pattern a list must be generated into memory using llLinksetDataFindKeys(string pattern, start, end), and a separate function call to llGetListLength(list name) against the return to to get this value. \r\n\r\nIf no other manipulation is being done at that time against the list of keys return, that is generally a waste of the memory resources and extra work by the script by calling the extra function to do part of the work.\r\n\r\nThe overall benefit at large is that this would vastly simplify getting a simple count of matching keys when that is all one is needing at a particular time. ', } ```