←back to thread

lsr: ls with io_uring

(rockorager.dev)
335 points mpweiher | 2 comments | | HN request time: 0.474s | source
1. pvtmert ◴[] No.44608175[source]
> I have no idea what lsd is doing. I haven’t read the source code, but from viewing it’s strace, it is calling clock_gettime around 5 times per file. Why? I don’t know. Maybe it’s doing internal timing of steps along the way?

Maybe calculating "X minutes/hours/days/weeks ago" thing for each timestamp? (access, create, modify, ...). Could just be an old artifact of another library function...

replies(1): >>44608382 #
2. namibj ◴[] No.44608382[source]
This shouldn't be an actual syscall these days; it should be handled by vDSO (`man 7 vDSO`). Maybe zig doesn't use that, though.