If you are looking to squeeze a little extra performance out of Fast Arrays, you can use these raw methods instead of SRP_FastArray.
Method | Description |
---|---|
SRP_FastArray_Count | Counts the number of fields, values, or subvalues in an SRP Fast Array. |
SRP_FastArray_Create | Creates a new SRP Fast Array. |
SRP_FastArray_Delete | Performs a DELETE on an SRP Fast Array. |
SRP_FastArray_Extract | Performs an EXTRACT on an SRP Fast Array. |
SRP_FastArray_GetVariable | Converts an SRP Fast Array back into a BASIC+ dynamic array. |
SRP_FastArray_Insert | Performs an INSERT on an SRP Fast Array. |
SRP_FastArray_InsertFromList | Inserts an SRP List into an SRP Fast Array. |
SRP_FastArray_Release | Releases the handle to an SRP Fast Array. |
SRP_FastArray_Replace | Performs a REPLACE on an SRP Fast Array. |
SRP_FastArray_ReplaceWithList | Replaces an element in an SRP Fast Array with an SRP List. |
Don't forget to release your SRP Fast Array handles. Always.
Note that one major difference between the BASIC+ Insert, Delete, and Replace routines and the SRP Fast Array equivalent routines is that the BASIC+ routines always creates a new Array and returns it. SRP Fast Array does not do this since creating copies is the performance bottle neck SRP Fast Array is working to avoid.
Oh yeah, one more thing: don't forget to release your SRP Fast Array handles.