Python Forum
Can Python make a large program with lots of gigabytes?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Python make a large program with lots of gigabytes?
#16
i wrote a little test script to use as much memory as it can.  it's taking quite a while.

#!/usr/bin/env python3
from copy import deepcopy
tree = { 'subtree':{ 1:'one', 2:'two' } }
for n in range( 0xffffffffffff ):
    print( n )
    tree['foo'] = deepcopy( tree )
    tree['bar'] = deepcopy( tree )
i guess i didn't need such a large argument for range() Shocked

it's using 95% of memory and 20% of CPU, so it must be swapping heavily.

i gave up on it.  i was running it in 3 different size cloud instances in parallel.  i terminated all 3.

you didn't think i would run it on my laptop did you?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: Can Python make a large program with lots of gigabytes? - by Skaperen - Dec-19-2016, 08:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to make a program recognize how many clicks it has had on the monitor? jao 0 1,157 Feb-25-2022, 06:31 PM
Last Post: jao
  breaking a large program into functions, not acting as expected Zane217 9 3,022 Sep-18-2021, 12:37 AM
Last Post: Zane217
  How to make a Vocal synthesizer program on Python? Seadust 3 3,576 Jan-28-2021, 06:26 PM
Last Post: gonnach
  How to make a Python program run in a dos shell (cmd) Pedroski55 2 2,326 Nov-09-2020, 10:17 AM
Last Post: DeaD_EyE
  I try to make Heron formula program abcd 7 3,427 Oct-22-2020, 12:48 AM
Last Post: abcd
  Make a Python program executable in Windows Pedroski55 1 2,117 Sep-26-2020, 12:34 AM
Last Post: bowlofred
  Moving large amount of data between MySql and Sql Server using Python ste80adr 4 3,429 Apr-24-2020, 01:24 PM
Last Post: Jeff900
  I code a program to solve puzzle but i can't make it more dynamic. Shahmadhur13 5 2,757 Apr-18-2020, 10:05 AM
Last Post: Shahmadhur13
  how to make a program with a certain number of multiples? syafiq14 3 2,776 Jan-01-2020, 02:39 PM
Last Post: syafiq14
  Handling Large XML Files (>10GB) in Python onlydibs 1 4,216 Dec-22-2019, 05:46 AM
Last Post: Clunk_Head

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020