Ticket #5275 (assigned)

Opened 8 years ago

Last modified 5 years ago

Printing in a tight python loop consumes a huge amount of memory

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: critical Milestone: Backlog
Component: Python Keywords:
Cc: Blocked By:
Blocking: Tester:

Description (last modified by Nick Draper) (diff)

Running this scripts consumes Gb's of memory and sometimes crashes!

sum = 0
while sum < 10000000:
    sum += 1
    print sum 

Change History

comment:1 Changed 8 years ago by Martyn Gigg

  • Description modified (diff)

comment:2 Changed 8 years ago by Martyn Gigg

There is also an issue if you remove the print statement it locks up the GUI and the loop takes an age to complete

comment:3 Changed 8 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner set to Martyn Gigg
  • Milestone changed from Release 2.2 to Release 2.3

comment:4 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.3 to Release 2.4

Moved to milestone 2.4

comment:5 Changed 8 years ago by Martyn Gigg

  • Milestone changed from Release 2.4 to Release 2.5

comment:6 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:7 Changed 7 years ago by Martyn Gigg

  • Milestone changed from Release 2.6 to Release 2.7

Batch move to 2.7

comment:8 Changed 7 years ago by Nick Draper

  • Status changed from assigned to new

comment:9 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.7 to Backlog

comment:10 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:11 Changed 7 years ago by Nick Draper

  • Component changed from Framework to Python API
  • Description modified (diff)

comment:12 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:13 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6121

Note: See TracTickets for help on using tickets.