Bill Allombert on Fri, 13 Sep 2024 09:50:24 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PATCH 2.16.2-beta] compressed input
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: [PATCH 2.16.2-beta] compressed input
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Fri, 13 Sep 2024 09:50:21 +0200
- Delivery-date: Fri, 13 Sep 2024 09:50:24 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1726213822; bh=UF4FMgSk2nzHThELTh13MDtDJeg58/mVfNhtUccg3oA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=UP9YatTgm0AypOhJS9XkB3se3kcpj3snWZ+cVaEvPVUwoB22ZFfIfPJa3oyF8tH+9 6nwZul96rhVbnRRXdQOba2DuSZr/ybcjRtx2eX4Zl8RCERvB+Tve/BVrQ0SdlsCSeo xiyJ/9fYv/VtA31emqDFprGX68Gp0Znnjzqy0uaQlMATzyRRvGfM1foI9QiPqqRD+T UHKioiZs9EbW1mnjxDLF/KVvOczDl8zyUi9AFm4oBnQwIv7jYGbuafGuefe26jtngM ITWxrgKiJqP4u9tdveboMuYTGi43MwyADQz7dzblifgG9Kphk9HStfPoQQxA36i+J4 Cw4I4K6B8I3X1GySYlfItHQrhwe0NIBljC6438s6hWFJ59lJN49xT/pSe/Vr96z+kg 6qsf0k6ZwFHU0dH6z2fgARAsxrvQ5QAzBOKTNWlnwkfCiX3s7p1IpOov2MxFjcsQUE d7c0F8aOLVGtfJeFYff4tKzdpLsLRON998KKqd/cVVQ1AROdmp7DCcHal4AO8GxN4t RgQqbsOPyZLRVf34u5n/V1CpaGCInZKVJIVHHiECrh0auWOyKr/czd08I4/O3BAe8c 1av8nvEozO6O4WsowLMmeKUS5pV81irkgGLycxy78K4JQ2qhr1s4ZQU2phFKSVoqB6 a3GXV1dj/5qX2wBz46Rvz1do=
- In-reply-to: <ZuLsZ5Zkxsm1EXlb@debian.attlocal.net>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ZtEYT7F0yhax3DLX@debian.attlocal.net> <Zt2VCKUALsEMjXFf@seventeen> <Zt9qJ5aiYEvzrhIA@seventeen> <ZuLsZ5Zkxsm1EXlb@debian.attlocal.net>
On Thu, Sep 12, 2024 at 06:28:07AM -0700, Ilya Zakharevich wrote:
> On Mon, Sep 09, 2024 at 11:35:35PM +0200, Bill Allombert wrote:
> > > > + {".bz2", "bzip2 -dc"},
> > > > + {".xz", "xz -dc"},
> > > > + {".zstd", "zstd -dc"},
> > > > + {".7z", "7za -so e"},
> > > > + {".zip", "unzip -p"},
> > > > + {NULL, NULL}
> > > > +};
> > >
> > > You could also add lzma, lz and lzop.
>
> What for? They are already supported by (many!) tools included
> above. (Just rename the archive adding an appropriate extension…)
In any case, GP need to know which extensions should be considered as
compressed files.
> P.S. And yes, having a default()able map extending the table above
> may be nice — e.g., to do multithreaded decompression…
Yes, this way PARI would not need to hardcode a list of extensions.
Something like
default(decompress,"gz,Z:gzip -dc;xz:xz -dc;zstd:zstd -dc")
Cheers,
Bill