View Single Post
  #15  
Old 05-18-2005, 06:34 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by Evil_Trunks
I am saying that I think the engine internally converts a numeric array to a string list if you try to store characters in the array, causing a drastic speed reduction
It is using floating point (64 bit) values, strings, lists or pointers depending on what variables you add to the array. A floating point value is only converted to string if you request it as string, e.g. if you output the value with echo/sendtonc.

Speed comparisons: String lists on serverside are really slow right now, although you need to use quite huge string lists to see a speed difference in the script. The string lists are more optimized on clientside. Also numeric arrays are much faster.
In new scripting engine it is using the same mechanism for normal numeric arrays and for string lists. They are probably slightly slower than numeric arrays (10-20%), but of course much faster than string lists. With Graal version 4 you also have the advantage that the script engine is coded in C/C++, so even numeric arrays should be faster than with v2.
Reply With Quote