Python Forum
How to work with large lists without crashing Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to work with large lists without crashing Python?
#2
it depends what elements are, but in most cases 5000 items is not that much and should not crash python. of course it also depend on your machine RAM. Maybe you are doing something wrong.
also, depending on how you create your list, you could create generator/iterator and iterate over it one element at a time without creating the entire list in memory
can you provide more info on how you create the list/what its elements are, etc. maybe provide sample data
Reply


Messages In This Thread
RE: How to work with large lists without crashing Python? - by buran - Mar-14-2018, 06:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python/Numpy have I already written the swiftest code for large array? justforkicks1 1 2,839 Dec-12-2017, 11:56 PM
Last Post: squenson

Forum Jump:

User Panel Messages

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