forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbe0a666
committed
Remove large fill factor support from dynahash.c.
Since ancient times we have had support for a fill factor (maximum loadfactor) to be set for a dynahash hash table, but:1. It was an integer, whereas for in-memory hash tables interestingload factor targets are probably somewhere near the 0.75-1.0 range.2. It was implemented in a way that performed an expensive divisionoperation that regularly showed up in profiles.3. We are not aware of anyone ever having used a non-default value.Therefore, remove support, effectively fixing it at 1.Author: Jakub Wartak <Jakub.Wartak@tomtom.com>Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>Reviewed-by: Tomas Vondra <tomas.vondra@2ndquadrant.com>Reviewed-by: Thomas Munro <thomas.munro@gmail.com>Reviewed-by: David Rowley <dgrowleyml@gmail.com>Discussion:https://postgr.es/m/VI1PR0701MB696044FC35013A96FECC7AC8F62D0%40VI1PR0701MB6960.eurprd07.prod.outlook.com1 parent06a7c31 commitbe0a666
2 files changed
+6
-16
lines changedLines changed: 6 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
126 | 125 |
| |
127 | 126 |
| |
128 | 127 |
| |
| |||
191 | 190 |
| |
192 | 191 |
| |
193 | 192 |
| |
194 |
| - | |
195 | 193 |
| |
196 | 194 |
| |
197 | 195 |
| |
| |||
497 | 495 |
| |
498 | 496 |
| |
499 | 497 |
| |
500 |
| - | |
501 |
| - | |
502 | 498 |
| |
503 | 499 |
| |
504 | 500 |
| |
| |||
603 | 599 |
| |
604 | 600 |
| |
605 | 601 |
| |
606 |
| - | |
607 |
| - | |
608 | 602 |
| |
609 | 603 |
| |
610 | 604 |
| |
| |||
670 | 664 |
| |
671 | 665 |
| |
672 | 666 |
| |
673 |
| - | |
674 |
| - | |
675 |
| - | |
| 667 | + | |
| 668 | + | |
676 | 669 |
| |
677 |
| - | |
| 670 | + | |
678 | 671 |
| |
679 | 672 |
| |
680 | 673 |
| |
| |||
733 | 726 |
| |
734 | 727 |
| |
735 | 728 |
| |
736 |
| - | |
737 | 729 |
| |
738 | 730 |
| |
739 | 731 |
| |
| |||
761 | 753 |
| |
762 | 754 |
| |
763 | 755 |
| |
764 |
| - | |
| 756 | + | |
765 | 757 |
| |
766 | 758 |
| |
767 | 759 |
| |
| |||
804 | 796 |
| |
805 | 797 |
| |
806 | 798 |
| |
807 |
| - | |
| 799 | + | |
808 | 800 |
| |
809 | 801 |
| |
810 | 802 |
| |
| |||
975 | 967 |
| |
976 | 968 |
| |
977 | 969 |
| |
978 |
| - | |
| 970 | + | |
979 | 971 |
| |
980 | 972 |
| |
981 | 973 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 | 71 |
| |
73 | 72 |
| |
74 | 73 |
| |
| |||
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
86 |
| - | |
87 | 85 |
| |
88 | 86 |
| |
89 | 87 |
| |
|
0 commit comments
Comments
(0)