Commit afb6802
committed
https: optimize session cache property access
Cache repeated property accesses in _cacheSession and _evictSession
methods to improve performance. This reduces the number of property
lookups from 7 to 1 in _cacheSession and from 2 to 1 in _evictSession.
The optimization follows a similar pattern to other performance
improvements in the codebase by caching frequently accessed object
properties in local variables.
Signed-off-by: jbj338033 <[email protected]>1 parent 3e79dba commit afb6802
1 file changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
575 | 578 | | |
576 | | - | |
577 | | - | |
| 579 | + | |
| 580 | + | |
578 | 581 | | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
582 | | - | |
583 | | - | |
| 585 | + | |
| 586 | + | |
584 | 587 | | |
585 | | - | |
| 588 | + | |
586 | 589 | | |
587 | 590 | | |
588 | | - | |
589 | | - | |
| 591 | + | |
| 592 | + | |
590 | 593 | | |
591 | 594 | | |
592 | 595 | | |
593 | | - | |
| 596 | + | |
| 597 | + | |
594 | 598 | | |
595 | 599 | | |
596 | 600 | | |
597 | | - | |
598 | | - | |
| 601 | + | |
| 602 | + | |
599 | 603 | | |
600 | 604 | | |
601 | 605 | | |
| |||
0 commit comments