Matrix 3x3 lib: impact of object type on functions optimization - different type of function argument (version: 0)
Does the compiler determine that type of all created matrix-objects is the same?
M3_0: matrix-object created in different places - see M3_0.new* functions.
M3_1: matrix-object created by constructor - see M3_1 function.
M3_2: matrix-object created in one place - see M3_2.newVal function.
Affected functions:
- mul_a()
- setVal()
- setCopy()
Note: the time of creating matrix-objects is also included.
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory