#5213·postgrest

Possible perf optimization for obtaining current time

Author: steve-chavezCreated Sep 2, 2026Updated Sep 2, 2026
Labelsperfidea

It seems to me we can avoid costly conversions and use getSystemTime directly, documentation says:

Get the system time, epoch start of 1970 UTC, leap-seconds ignored. getSystemTime is typically much faster than getCurrentTime.

Although that would be a larger change due to JWT code using UTCTime...

Originally posted by @mkleczek in https://github.com/PostgREST/postgrest/pull/5208#discussion_r3910600274