Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"A mind is a terrible thing to have leaking out your ears." -- The League of Sadistic Telepaths


devel / comp.lang.python / Re: tail

SubjectAuthor
o Re: tailCameron Simpson

1
Re: tail

<mailman.261.1650927307.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18052&group=comp.lang.python#18052

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: cs...@cskk.id.au (Cameron Simpson)
Newsgroups: comp.lang.python
Subject: Re: tail
Date: Tue, 26 Apr 2022 08:54:55 +1000
Lines: 14
Message-ID: <mailman.261.1650927307.20749.python-list@python.org>
References: <ea7d13fc-7385-1ed9-b87b-0091874c91e8@DancesWithMice.info>
<Ymcmv6n3kcIn4EkJ@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de MI2/b8J+Q3EJ1lzl8IMfPAaGSP0JtVcdGNEbL08DjaqQ==
Return-Path: <cameron@cskk.id.au>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'neil': 0.09; 'situations':
0.09; 'threshold': 0.09; 'cheers,': 0.11; '"last': 0.16;
'cameron': 0.16; 'enough,': 0.16; 'entirety,': 0.16; 'files).':
0.16; 'from:addr:cs': 0.16; 'from:addr:cskk.id.au': 0.16;
'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net':
0.16; 'received:13.237': 0.16; 'received:13.237.201': 0.16;
'received:13.237.201.189': 0.16; 'received:cskk.id.au': 0.16;
'received:id.au': 0.16; 'received:mail.cskk.id.au': 0.16;
'simpson': 0.16; 'skip:> 20': 0.16; 'wrote:': 0.16; 'to:addr
:python-list': 0.20; 'header:User-Agent:1': 0.30; 'approach':
0.31; '"this': 0.32; 'files,': 0.32; 'but': 0.32; 'same': 0.34;
'header:In-Reply-To:1': 0.34; 'received:au': 0.35; 'file': 0.38;
'read': 0.38; 'received:13': 0.64; 'your': 0.64; 'well': 0.65;
'received:userid': 0.66; 'longer': 0.71
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <ea7d13fc-7385-1ed9-b87b-0091874c91e8@DancesWithMice.info>
User-Agent: Mutt/2.2.1 (2022-02-19)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <Ymcmv6n3kcIn4EkJ@cskk.homeip.net>
X-Mailman-Original-References: <ea7d13fc-7385-1ed9-b87b-0091874c91e8@DancesWithMice.info>
 by: Cameron Simpson - Mon, 25 Apr 2022 22:54 UTC

On 25Apr2022 08:08, DL Neil <PythonList@DancesWithMice.info> wrote:
>Thus, the observation that the OP may find that a serial,
>read-the-entire-file approach is faster is some situations (relatively
>short files). Conversely, with longer files, some sort of 'last chunk'
>approach would be superior.

If you make the chunk big enough, they're the same algorithm!

It sound silly, but if you make your chunk size as big as your threshold
for "this file is too big to read serially in its entirety, you may as
well just write the "last chunk" flavour.

Cheers,
Cameron Simpson <cs@cskk.id.au>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor