Avoid unnecessary division in interval_cmp_value().
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/timestamp.c | modified | +5 −8 |
Discussion
- Useless division(s) in interval_cmp_value 1 message · 2021-09-26