Bill Allombert on Tue, 28 Feb 2023 21:08:48 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: unable to load a large vector from a file
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: unable to load a large vector from a file
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Tue, 28 Feb 2023 21:07:17 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1677614830; c=relaxed/relaxed; bh=Zlv3HIqkxhPjezxMGQeGqjFzFOQPcXu6IGuHhZMRKOY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=V0/klDSlErzc5EbrM+5fc0N6TY81ULVs/igdPk9bNwZFAy95/2WgG5Q4rUmAqNtANHNJqgjrk/R2b+gUiyLbUaF8oFKuiaUU4mVJFIl1Se0ZCLBqEdSRK+/RauGn/kbVMAz7EUivRCpW8hYoOudcAw9UWRTqyq86tJPFtubzf0XELU6NFt70nXV4ydFraBdZwCjPln/ZxdvaVKEcoEpxo4jvQsnlr3KFNb3NZvX/L7f3A2Sp3SreIWTkVNrMjKN5greUfq63Y5x+RpUKpOh26OSkdvjMSW5CXXk10s4Z8ZxodgF4s2zbcpuyy/zmXcK8GTQgP9Q6u99q2KdwrKTHTqKBkwcYCtFePSWexqYpyOQpIpXrVatUOk3KXcTBG6SuMCDDqrvei65960/JnMBb0r4Ws6fz7Dlq7BsbB5AkwBPJo7nrSBdqc5THHk9dG8WRYqJxOiK/G1qdFkCdgkjTITXbExTJqP6nd2EvTgnKbuaVxRfZIJVJqZB29DJq7MPy7Ng/eAbZopzElrZGkuKuQ+WxyJAdavJEpwNdkt7Is2ivweY+Wa5HFE+i4apMSUQtA+aeD7nsLtvd7hDUbEvoIGL91FiLEPVJR1QLxtjV8jHYO9mBjziG8yWCrPo78jR+8MCA6aUWOGUyToyCP5KY2tS+9IPyomtPJrpPsOOKknU=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1677614830; cv=none; b=NVdYQbvhSAI5uM9Z/fdn9zTXecA+z+qB1Jc7kH2bJH2WzIOQlvdlJUKqrM5LQ3JGTgLG07F45J2P8swLkL8EcLggz/OWjrUIqi/psotbeIRIWWLj7vfm4Iz0DtgyA4vntukgASYLNU0MmW+FWIIv4QQmofDlrkPNlhgHLcsbOV2gkW+WEWYi4ok/0rSdqM8RSiW0dD1Qb9ZuCBtDiOvnI+Eq3jWiXjHv58MS9H4h+0jHipVh+94mIvs91/VoBmjrakSSzMx+mwOEPkfhsHhV6+BSkvUTbCAFJf/ZPl0fgdjxiciE8nwkE+SeHHdaD6R4ctZKWBIjH5FUQz7L0unTKb5uplvLDll81AwjwPHhZegtQzPMOr9B/xDMDJEjdwukctdLyAe/oiijfDy7k6vDOo9z4Ng2tkjJMO/cFcGYXAYW2ZFlI9QyZKZNNTmRgoD2QcvbACclAfzK8bvRIcGPznmQzhiIJtc3RBFLR+vZR8DSjv0o2iLblyUIn3Ohs5ViCCoqdlakKMyKARWMMEt0AErFje7ILvx8ffpP3+aduzz5BewXZSuJ8G4NiyXqBmmnWMlBpVE9GUHsvELrRK4bXlwabd+4d1q7UZBOzNuoTLRjdGnMlzvpyNvh4in6DcCaqqNacdxJ1VEkqPzmG8Vwwqmbe4VFQCf2K2PWfbEInR8=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Tue, 28 Feb 2023 21:08:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1677614830; bh=Zlv3HIqkxhPjezxMGQeGqjFzFOQPcXu6IGuHhZMRKOY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=SW2UkiI1kQTs0FwNIcTTlfHtz8A9cMH/TrG8f1N5lJqodKdSib6YsWJ/pjrnIAqh8 +LkuVJhTptUhMSHXqU1n0XUK/zGDmmV5BKLbG+2qgJX1fpp1xstOG9hjCEq1IM0NI4 TUDXw0Lq5rOL7w+8qjyoZgMkBkqvwtXBS6GtsFAo6EFODNQ/eaOA12pS43i6N8VRF4 kcs/H9X2ZmmKlCJ7C0XA0Vfd4ZCRtVFiZFeuUsYJEqepyHXdFZTojJ78ftUpQd8e1h C9V/imvt5zMFRwvDbxQIaENsuLGDAttpuPiBdSGr8J5cNHjFK5lpvc0YqsuORcY54k 2KnkaQVdjHJVIltauWll6/Qf2emphbjr/uyqAMfqxkjsuFHV6wtuZTCwDgz3LfAx5P EeBwAgyhFOHH2XZt2gauPf1Wzm4MeIZx5SAdBD2wnt/fuNbLeENMJrVrGP0rT+utW8 uReg6Hq3WNX8cBYKO3sgRWrWFPfS2vK9lpyRWA4C/az/eEqqZWwCW0csSQXTb+AKAJ KMjCI+36TfQ0SHGHzHvhFIPU6sMYPrcXIy1xnvnmop3QejFZNLiL/+sjfLJ6DhbyWw aYF3alAah214cu7xd3VMYuquJxwFFU72SZS8XUZhA4SsjMazizL79lkJYya6UJDTE8 bTdanD1vpMInoIr100N/fve4=
- In-reply-to: <CAJkPp5N+U6Fw=5URL4TsLC_rKMwPxWV30wNG25E2OXOKq1Fyag@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5N+U6Fw=5URL4TsLC_rKMwPxWV30wNG25E2OXOKq1Fyag@mail.gmail.com>
On Tue, Feb 28, 2023 at 02:30:16PM -0500, Max Alekseyev wrote:
> I have a vector v of size 10^9 with moderately-sized integers, which I
> saved to a file with
> write("myvector.txt",v);
> However, I'm unable to read it back. PARI/GP either runs out of memory
> (even with 96GB memory allocation!) or just killed by the system.
You should use the new fileopen interface to write it and then use readvec
to read the file.
f=fileopen("myvector.txt","w");
for(i=1,#v,filewrite(f,v[i]));
fileclose(f);
and then
readvec("myvector.txt");
Cheers,
Bill