postgresql/src/common
Heikki Linnakangas 025c02420d Speed up CRC calculation using slicing-by-8 algorithm.
This speeds up WAL generation and replay. The new algorithm is
significantly faster with large inputs, like full-page images or when
inserting wide rows. It is slower with tiny inputs, i.e. less than 10 bytes
or so, but the speedup with longer inputs more than make up for that. Even
small WAL records at least have 24 byte header in the front.

The output is identical to the current byte-at-a-time computation, so this
does not affect compatibility. The new algorithm is only used for the
CRC-32C variant, not the legacy version used in tsquery or the
"traditional" CRC-32 used in hstore and ltree. Those are not as performance
critical, and are usually only applied over small inputs, so it seems
better to not carry around the extra lookup tables to speed up those rare
cases.

Abhijit Menon-Sen
2015-02-10 10:54:40 +02:00
..
Makefile Move pg_crc.c to src/common, and remove pg_crc_tables.h 2015-02-09 11:17:56 +02:00
exec.c On Darwin, detect and report a multithreaded postmaster. 2015-01-07 22:35:44 -05:00
fe_memutils.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_crc.c Speed up CRC calculation using slicing-by-8 algorithm. 2015-02-10 10:54:40 +02:00
pg_lzcompress.c Move pg_lzcompress.c to src/common. 2015-02-09 15:15:24 +09:00
pgfnames.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
psprintf.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
relpath.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
rmtree.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
string.c Add pg_string_endswith as the start of a string helper library in src/common. 2015-01-03 20:54:12 +01:00
username.c Fix libpq's behavior when /etc/passwd isn't readable. 2015-01-11 12:35:44 -05:00
wait_error.c Update copyright for 2015 2015-01-06 11:43:47 -05:00