Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
memory saving in Python
#3
laptops tend to be smaller. i have found a few at 64GB, just one at 128GB (and reason to believe Linux can't run on it), and mostly 32GB.

my goal is to learn to be smarter in programming for the goal of keeping memory smaller, avoiding duplicates of data is a major way to achieve this. for exampled, the sorted() function make a copy of the list you are sorting. you will have 2 copies of the data for the instant in time until you del the original. the program could die there, or cause a lot of swapping of everything. using (list).sort() instead always has just the one copy.

i know this one, but i want to learn other techniques.
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
memory saving in Python - by Skaperen - Jan-20-2020, 01:18 AM
RE: memory saving in Python - by Larz60+ - Jan-20-2020, 02:16 AM
RE: memory saving in Python - by Skaperen - Jan-24-2020, 06:07 AM
RE: memory saving in Python - by perfringo - Jan-24-2020, 06:57 AM
RE: memory saving in Python - by Gribouillis - Jan-24-2020, 07:00 AM
RE: memory saving in Python - by Skaperen - Jan-24-2020, 09:09 PM

Forum Jump:

User Panel Messages

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