24.04.2014, 11:20
The title kind of summarizes my current problems with my script, I have an array I add and remove from during runtime and I use it for a very simplistic intelligence program which grows off the server chat, anyway I have had to store the value of the last index I wrote to and use that index++ for the next value, the problem is I cannot simply use it like a vector or a list, and as such I have been having to store deleted indexes as a separate array and reference that, it works fine but feels very dirty, another thing I tried was having two arrays and copying all non-blank values over into a temporary array, clearing the original, passing them all back, disposing the temporary array (out of scope) and then updating the index value for the script to continue
This is dirty and after a few hours it gradually takes longer and longer to execute. also how big is an array if I initialize it without a size?
This is dirty and after a few hours it gradually takes longer and longer to execute. also how big is an array if I initialize it without a size?