- Notifications
You must be signed in to change notification settings - Fork5
Commitacd1536
committed
Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and
free'd for every transaction or statement, respectively. This patchputs these data structures into static memory, thus saving a few CPUcycles and two malloc calls per transaction or (in isolation levelREAD COMMITTED) per query.Manfred Koizar1 parent752a4da commitacd1536
3 files changed
+30
-33
lines changedLines changed: 18 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
308 |
| - | |
| 308 | + | |
309 | 309 |
| |
310 |
| - | |
311 | 310 |
| |
312 | 311 |
| |
313 | 312 |
| |
| |||
316 | 315 |
| |
317 | 316 |
| |
318 | 317 |
| |
319 |
| - | |
320 |
| - | |
| 318 | + | |
321 | 319 |
| |
322 | 320 |
| |
323 | 321 |
| |
324 | 322 |
| |
325 | 323 |
| |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
326 | 330 |
| |
327 |
| - | |
328 |
| - | |
329 | 331 |
| |
330 |
| - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
331 | 341 |
| |
332 | 342 |
| |
333 | 343 |
| |
|
Lines changed: 10 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
33 | 35 |
| |
34 | 36 |
| |
35 | 37 |
| |
| |||
941 | 943 |
| |
942 | 944 |
| |
943 | 945 |
| |
944 |
| - | |
| 946 | + | |
945 | 947 |
| |
946 | 948 |
| |
947 | 949 |
| |
948 | 950 |
| |
949 | 951 |
| |
950 |
| - | |
951 |
| - | |
952 |
| - | |
953 |
| - | |
954 |
| - | |
955 |
| - | |
956 |
| - | |
957 | 952 |
| |
958 | 953 |
| |
959 | 954 |
| |
960 |
| - | |
| 955 | + | |
961 | 956 |
| |
962 | 957 |
| |
963 | 958 |
| |
| |||
1003 | 998 |
| |
1004 | 999 |
| |
1005 | 1000 |
| |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1012 | 1006 |
| |
1013 |
| - | |
1014 |
| - | |
1015 |
| - | |
1016 |
| - | |
1017 |
| - | |
1018 |
| - | |
1019 |
| - | |
1020 | 1007 |
| |
1021 | 1008 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
116 |
| - | |
| 116 | + | |
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
|
0 commit comments
Comments
(0)