List of current enchantments, more will be added with the upcoming releases

Tag

Converts operator tag comparison to method one. This will result in one less string object creation, less work for garbage collector, better cpu and memory performance. References: * *
Also this enchantment is fully interactable in the demo.



Method

Comments out empty callback methods. This will make fewer context switch between native and managed code, better cpu performance. References: * *



Destructor

Comments out empty destructors. This will result in one less finalizer call, less work for garbage collector, better cpu performance. References: *



ForEach

ForEach: Converts foreach loops to for loops. This is intended for Unity versions 5.4 and lower. These old versions were allocating extra memory with foreach loops, but not with for loops. So this will make less memory and garbage collector usage, better cpu and memory performance. This is disabled by default if Unity version is 5.5 or higher. References: *



Distance

Converts distance comparisons to squared ones. Property magnitude of Vector2, Vector3 and Vector4 will be replaced with property sqrMagnitude. This will eliminate costy square root operation, better cpu performance. References: *



StringBuilder

Converts string concatenations to StringBuilder format. String "+=" and "+" operators will be replaced with StringBuilder.Append() or Insert(). This will result in less string object creation, less work for garbage collector, better cpu and memory performance. References: * *



Reciprocal

Converts division by constant number to multiplication by reciprocal of the constant number. This will replace a costly operation with a cheaper one, better cpu performance. (Reciprocal division is calculated at compile time, no effect during runtime.) References: *



Order of Multiplication

Changes order of multiplication operations so that vector multiplications will be converted to floating point multiplications, which are much more cheaper, better cpu performance. References: *



Procedural LINQ

Converts LINQ expression to plain procedural instructions. This will eliminate many delegates and enumerators, resulting better cpu and memory performance. Source code may become harder to read and understand though. References: *



Unity Asset Store | Twitter | Contact