From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8ccc8ba40609230800k3bdb5aabq391f71112fc1debf@mail.gmail.com> Date: Sat, 23 Sep 2006 17:00:50 +0200 From: "Francisco J Ballesteros" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Why are some apps so slow? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d3530220609212231g4110c06ev96875a43c13ce968@mail.gmail.com> <8ccc8ba40609221321w3dd7dc55m6747aa3c67d057cd@mail.gmail.com> <8ccc8ba40609230647p4445affar3ca7969bbe9a869@mail.gmail.com> Topicbox-Message-UUID: c0162052-ead1-11e9-9d60-3106f5b1d025 I mean, many times a program reads a small file once. You have to open it, and once it has been read, you do not want to read it again. Leaving it open would not help. On 9/23/06, Russ Cox wrote: > > But in many cases the files read are small, and keeping the > > fd open would not help. Just curiosity, anyway. > > Why wouldn't keeping the fd open help? > It would get rid of the walk, open, and close, > 3 of the 4 messages you were trying to get down to 1. > > Rsus > >