Table of Contents
Overview
Using some object’s properties we can examine different complexities. Complexity values are already defined and they are split into the following tables.
Function complexities
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
Function size (bytes) | 0 – 49 | 50 – 99 | 100 – 199 | 200 – 299 | 300 – 499 | 500 – 699 | 700 – 999 | 1000 – 1499 | 1500 – 3000 | 3000 – INF |
---|---|---|---|---|---|---|---|---|---|---|
Function stack size (bytes) | 0 – 15 | 16 – 31 | 32 – 63 | 64 – 127 | 128 – 255 | 256 – 511 | 512 – 1023 | 1024 – 2047 | 2048 – 4095 | 4096 – INF |
Function Call Tree (number of calls) | 0 – 1 | 2 – 3 | 4 – 5 | 6 – 7 | 8 – 10 | 11 – 15 | 16 – 20 | 21 – 31 | 32 – 63 | 64 – INF |
Variable complexity
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
Data size (bytes) | 0 – 7 | 8 – 15 | 16 – 31 | 32 – 63 | 64 – 127 | 128 – 255 | 256 – 511 | 512 – 1023 | 1024 – 2047 | 2048 – INF |
---|
Component complexity
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
Ram Alignment (bytes) | 0 – 4 | 5 – 7 | 8 – 15 | 16 – 31 | 32 – 47 | 48 – 63 | 64 – 95 | 96 – 255 | 256 – 999 | 1000 – INF |
---|---|---|---|---|---|---|---|---|---|---|
Rom Alignment (bytes) | 0 – 4 | 5 – 7 | 8 – 15 | 16 – 31 | 32 – 47 | 48 – 63 | 64 – 95 | 96 – 255 | 256 – 999 | 1000 – INF |
Complexity can help developers to see if some objects need optimization, potential memory bottlenecks etc