Avoid unnecessary division in interval_cmp_value().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e94c1a55dada49772622d2be2d17a2a9973b2661
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-09-26T18:24:03Z
Releases: 15.0
Avoid unnecessary division in interval_cmp_value().

Splitting the time field into days and microseconds is pretty
useless when we're just going to recombine those values.
It's unclear if anyone will notice the speedup in real-world
cases, but a cycle shaved is a cycle earned.

Discussion: https://postgr.es/m/2629129.1632675713@sss.pgh.pa.us

Files

PathChange+/−
src/backend/utils/adt/timestamp.c modified +5 −8

Discussion