Software /
code /
prosody
File
teal-src/util/datetime.d.tl @ 11698:9a2a98621c73
net.server_epoll: Optimize concatenation of exactly 2 buffer chunks
Saves a function call. I forget if I measured this kind of thing but
IIRC infix concatenation is faster than a function call up to some
number of items, but let's stop at 2 here.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Jul 2021 15:40:08 +0200 |
parent | 11459:86904555bffc |
child | 12634:8cb6644ce463 |
line wrap: on
line source
-- TODO s/number/integer/ once Teal gets support for that local record lib date : function (t : integer) : string datetime : function (t : integer) : string time : function (t : integer) : string legacy : function (t : integer) : string parse : function (t : string) : integer end return lib