Article View: comp.lang.lisp
Article #79Re: read-file for sbcl
From: tfb
Date: Sat, 28 Nov 2026 12:51
Date: Sat, 28 Nov 2026 12:51
13 lines
1816 bytes
1816 bytes
Alexander Schreiber <als@usenet.thangorodrim.de> wrote: > Yeah, it has to read an entire block from storage (512/4096 bytes depending > on details). All because the inode on ext4 by default is an absolutely massive > 256 bytes. And that assumes fully cold caches. Right. And *you're about to read the inode anyway* since you're about to read the file. So the marginal cost of stat() is utterly negligible. Oh, and by the way, to get to the point where you can call lseek() *you've also read the inode*! -- tfeb.org/computer/
Technical Details
Message-ID:
<11eeio5$2i30h$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<87ld6gl8ah.fsf@gmail.com> <m3wlq0ut1c.fsf@pison.robolove.meer.net> <87ld6dhbsc.fsf@gmail.com> <slrn11glf2d.1hn9k.als@mordor.angband.thangorodrim.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: tfb <tfb@work.it.out> Newsgroups: comp.lang.lisp Subject: Re: read-file for sbcl Date: Sat, 28 Nov 2026 12:51:17 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: <11eeio5$2i30h$1@dont-email.me> References: <87ld6gl8ah.fsf@gmail.com> <m3wlq0ut1c.fsf@pison.robolove.meer.net> <87ld6dhbsc.fsf@gmail.com> <slrn11glf2d.1hn9k.als@mordor.angband.thangorodrim.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 28 Nov 2026 12:51:18 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2690065"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184A5o7t8y1dUW//tyFd4qh"; posting-host="c637db8f2573e7df4cb23375c361524a" User-Agent: NewsTap/5.6.3 (iPad) Cancel-Lock: sha1:3NykjZFPL2a/8VrlDa2nZL607w4= sha1:/NZIbexVizV7tfhxt16eITbNnAI= sha256:jnXeX1l4OmKJTm50jLUflnUHOfuh4VROxS1EZ+qrMu4= sha1:BpcbJCib8wtQ6SrZD+kKiuiJ1XA= sha256:RUw74HpKStghDtEGEZ10dD41tyoCK8J81ywQbSM4dLE= X-Face: MUamY>^a5S.|?6RN|-|NWN5bt&pk2lG9&5,.QQ4