- Notifications
You must be signed in to change notification settings - Fork28
Commit9fab40a
committed
Use the new "Slab" context for some allocations in reorderbuffer.h.
Note that this change alone does not yet fully address the performanceproblems triggering this work, a large portion of the slowdown istriggered by the tuple allocator, which isn't converted to the newallocator. It would be possible to do so, but using evenly sizedobjects, like both the current implementation in reorderbuffer.c andslab.c, wastes a fair amount of memory. A later patch by Tomas willintroduce a better approach.Author: Tomas VondraReviewed-By: Andres FreundDiscussion:https://postgr.es/m/d15dff83-0b37-28ed-0809-95a5cc7292ad@2ndquadrant.com1 parent58b25e9 commit9fab40a
File tree
2 files changed
+22
-66
lines changed- src
- backend/replication/logical
- include/replication
2 files changed
+22
-66
lines changedLines changed: 16 additions & 58 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
160 | 159 |
| |
161 |
| - | |
162 |
| - | |
163 | 160 |
| |
164 | 161 |
| |
165 | 162 |
| |
| |||
241 | 238 |
| |
242 | 239 |
| |
243 | 240 |
| |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
244 | 251 |
| |
245 | 252 |
| |
246 | 253 |
| |
| |||
251 | 258 |
| |
252 | 259 |
| |
253 | 260 |
| |
254 |
| - | |
255 |
| - | |
256 | 261 |
| |
257 | 262 |
| |
258 | 263 |
| |
| |||
261 | 266 |
| |
262 | 267 |
| |
263 | 268 |
| |
264 |
| - | |
265 |
| - | |
266 | 269 |
| |
267 | 270 |
| |
268 | 271 |
| |
| |||
291 | 294 |
| |
292 | 295 |
| |
293 | 296 |
| |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
| 297 | + | |
| 298 | + | |
307 | 299 |
| |
308 | 300 |
| |
309 | 301 |
| |
| |||
344 | 336 |
| |
345 | 337 |
| |
346 | 338 |
| |
347 |
| - | |
348 |
| - | |
349 |
| - | |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
| 339 | + | |
359 | 340 |
| |
360 | 341 |
| |
361 | 342 |
| |
| |||
366 | 347 |
| |
367 | 348 |
| |
368 | 349 |
| |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 |
| - | |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
| 350 | + | |
| 351 | + | |
382 | 352 |
| |
383 | 353 |
| |
384 | 354 |
| |
| |||
434 | 404 |
| |
435 | 405 |
| |
436 | 406 |
| |
437 |
| - | |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 |
| - | |
442 |
| - | |
443 |
| - | |
444 |
| - | |
445 |
| - | |
446 |
| - | |
447 |
| - | |
448 |
| - | |
| 407 | + | |
449 | 408 |
| |
450 | 409 |
| |
451 |
| - | |
452 | 410 |
| |
453 | 411 |
| |
454 | 412 |
| |
|
Lines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
333 | 339 |
| |
334 | 340 |
| |
335 | 341 |
| |
| |||
340 | 346 |
| |
341 | 347 |
| |
342 | 348 |
| |
343 |
| - | |
344 |
| - | |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 |
| - | |
350 |
| - | |
351 | 349 |
| |
352 | 350 |
| |
353 | 351 |
| |
|
0 commit comments
Comments
(0)