- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6016005
committed
Fix performance problem when building a lossy tidbitmap.
As pointed out by Sergey Koposov, repeated invocations of tbm_lossify canmake building a large tidbitmap into an O(N^2) operation. To fix, makesure we remove more than the minimum amount of information per call, andadd a fallback path to behave sanely if we're unable to fit the bitmapwithin the requested amount of memory.This has been wrong since the tidbitmap code was written, so back-patchto all supported branches.1 parent44631ee commit6016005
1 file changed
+19
-3
lines changedLines changed: 19 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
884 | 884 |
| |
885 | 885 |
| |
886 | 886 |
| |
887 |
| - | |
888 |
| - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
889 | 892 |
| |
890 | 893 |
| |
891 | 894 |
| |
| |||
906 | 909 |
| |
907 | 910 |
| |
908 | 911 |
| |
909 |
| - | |
| 912 | + | |
910 | 913 |
| |
911 | 914 |
| |
912 | 915 |
| |
| |||
919 | 922 |
| |
920 | 923 |
| |
921 | 924 |
| |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
922 | 938 |
| |
923 | 939 |
| |
924 | 940 |
| |
|
0 commit comments
Comments
(0)