git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 79376e0) | patch
Remove unnecessary memcpy when reading WAL record fitting on page
2018年11月19日 01:25:48 +0000 (10:25 +0900)
2018年11月19日 01:25:48 +0000 (10:25 +0900)
commit 285bd0ac4a7c0538d544c40aa725682e11cb71a9
Remove unnecessary memcpy when reading WAL record fitting on page

When reading a WAL record, its contents are copied into an intermediate
buffer. However, doing so is not necessary if the record fits fully
into the current page, saving one memcpy for each such record. The
allocation handling of the intermediate buffer is also now done only
when a record crosses a page boundary, shaving some extra cycles when
reading a WAL record.

Author: Andrey Lepikhov
Reviewed-by: Kyotaro Horiguchi, Heikki Linnakangas
Discussion: https://postgr.es/m/c2ea54dd-a1d3-80eb-ddbf-7e6f258e615e@postgrespro.ru
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/access/transam/xlogreader.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /