X 归档 2022-03-17
Performance tip: did you know you can make a fast function for relative time strings with ~30 lines of code and 0 dependencies?
Code in 🧵:
Code in 🧵:
性能小贴士:你知道吗,用约 30 行代码、0 依赖就能写出一个生成相对时间字符串的高速函数?
代码在 🧵 里:
代码在 🧵 里:
Performance tip: did you know you can make a fast function for relative time strings with ~30 lines of code and 0 dependencies?
Code in 🧵:
Code in 🧵:
性能小贴士:你知道吗,用约 30 行代码、0 依赖就能写出一个生成相对时间字符串的高速函数?
代码在 🧵 里:
代码在 🧵 里:


