Setting the TZ environment variable avoids thousands of system calls

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ClickHouse

    ClickHouse® is a free analytics DBMS for big data

    Syscalls can be heavier than expected. One example is when an application is run inside gVisor. Another example is when a lot of eBPF code is attached. A third example is when a program is run under strace.

    Disclaimer: I'm working on ClickHouse[1], and it is used by thousands of companies in unimaginable environments. It has to work in every possible condition... That's why we set the TZ variable at startup and also embed the timezones into the binary. And we don't use the glibc functions for timezone operations because they are astonishingly slow.

    https://github.com/ClickHouse/ClickHouse/

  • icu

    The home of the ICU project source code.

    https://github.com/unicode-org/icu/pull/2213

    This affects all packages that have icu as a dependency, one of them being Node.js.

    https://github.com/nodejs/node/issues/37271

    I discovered this the hard way when some code malfunctioned shortly after daylight savings time kicked in.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • node

    Node.js JavaScript runtime ✨🐢🚀✨

    https://github.com/unicode-org/icu/pull/2213

    This affects all packages that have icu as a dependency, one of them being Node.js.

    https://github.com/nodejs/node/issues/37271

    I discovered this the hard way when some code malfunctioned shortly after daylight savings time kicked in.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts