This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit e61be1b
committed
rustdoc-search: reuse empty map/array in function signatures
Map is implemented as a pointer to a mutable object.
Rustdoc never mutates function signatures after constructing them,
but the JS engine doesn't know that.
To save a bunch of memory, use a single immutable map
for every decoded type object with no bindings or generics.1 parent 0ee9cfd commit e61be1b
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2717 | 2717 | | |
2718 | 2718 | | |
2719 | 2719 | | |
2720 | | - | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
2721 | 2723 | | |
2722 | 2724 | | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
2723 | 2739 | | |
2724 | 2740 | | |
2725 | 2741 | | |
| |||
2732 | 2748 | | |
2733 | 2749 | | |
2734 | 2750 | | |
2735 | | - | |
2736 | | - | |
| 2751 | + | |
| 2752 | + | |
2737 | 2753 | | |
2738 | 2754 | | |
2739 | 2755 | | |
2740 | 2756 | | |
2741 | 2757 | | |
2742 | 2758 | | |
2743 | | - | |
| 2759 | + | |
2744 | 2760 | | |
2745 | 2761 | | |
2746 | 2762 | | |
| |||
2759 | 2775 | | |
2760 | 2776 | | |
2761 | 2777 | | |
2762 | | - | |
| 2778 | + | |
2763 | 2779 | | |
2764 | 2780 | | |
2765 | 2781 | | |
| |||
0 commit comments