If you are looking to squeeze a little extra performance out of SRP Lists, you can use these raw methods instead of SRP_List.
Method | Description |
---|---|
SRP_List_Add | Adds an element to the end of an SRP List. |
SRP_List_Create | Creates an SRP List. |
SRP_List_CreateFromFastArray | Creates an SRP List initialized to a list within the given SRP Fast Array. |
SRP_List_Count | Gets the number of elements in the list. |
SRP_List_GetAt | Gets the element from an SRP List at the given index. |
SRP_List_GetVariable | Converts an SRP List back into a BASIC+ variable. |
SRP_List_InsertAt | Inserts an element into an SRP List at the given index position. |
SRP_List_Match | Finds the index of the first element from the starting index that matches the given string. |
SRP_List_Reduce | Creates a new list containing only those elements that match the given string. |
SRP_List_Locate | Locates a value in an SRP List. |
SRP_List_Release | Releases the handle to an SRP List. |
SRP_List_RemoveAt | Removes an element from an SRP List at the given index position. |
SRP_List_SetAt | Sets an element into an SRP List at the given index position. |
Don't forget to release your SRP List handles. Always.
Note that one major difference between the BASIC+ Insert, Delete, and Replace routines and the SRP List equivalent routines is that the BASIC+ routines always creates a new list and returns it. SRP List does not do this since creating copies is the performance bottle neck SRP List is working to avoid.
Oh yeah, one more thing: don't forget to release your SRP List handles.