Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
If it doesn't lag when using it, then it never lags. That's how it is with functions.
So as Dr Super Good said, there is no point in deleting functions.
The only time you would want to delete a function is if your program used dynamic code generation for optimization (such as a JAVA virtual machines). This however is a very limited use case since dynamic code generation is generally considered unsafe. Since JASS does not allow dynamic code generation (officially atleast) then there is no need to delete a function.
One could argue that removing the function decleration from the namespace would speed up the JASS interpreter by possibly reducing the number of hash collisions. In practice the same effect could probably be achieved by declearing all "limited usage" functions at the end of the map script to assure they are the hardest to reach in the case of a hash collision. This however is mico-optimization which will have limited effect on game performance. In reality reducing commonly called function name length will improve performance much more than any such optimization could.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.