Commit 7bd2854
committed
Improve __toString performance
Running scenario: Short attributes, empty rendered
__toString() time: 0.00077986717224121 seconds
__toString2() time: 0.00049495697021484 seconds
Improvement: 36.533170284317%
Running scenario: Short attributes, partial rendered
__toString() time: 0.00054383277893066 seconds
__toString2() time: 0.00031709671020508 seconds
Improvement: 41.692240245506%
Running scenario: Short attributes, full rendered
__toString() time: 0.00030899047851562 seconds
__toString2() time: 0.00012898445129395 seconds
Improvement: 58.256172839506%
Running scenario: Long attributes, empty rendered
__toString() time: 0.0038020610809326 seconds
__toString2() time: 0.0026099681854248 seconds
Improvement: 31.353859660124%
Running scenario: Long attributes, partial rendered
__toString() time: 0.0032980442047119 seconds
__toString2() time: 0.0022611618041992 seconds
Improvement: 31.439311790646%
Running scenario: Long attributes, full rendered
__toString() time: 0.00074219703674316 seconds
__toString2() time: 0.00014185905456543 seconds
Improvement: 80.886604561516%1 parent cb7809f commit 7bd2854
1 file changed
+37
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
82 | 77 | | |
83 | 78 | | |
84 | 79 | | |
| |||
0 commit comments