• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I've got a function I want delted after its called, how?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
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.
 
Status
Not open for further replies.
Top