Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
martyngigg opened this issue May 4, 2012 · 2 comments
Closed

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

martyngigg opened this issue May 4, 2012 · 2 comments
Assignees
Labels
High Priority An issue or pull request that if not addressed is severe enough to postponse a release.

Comments

@martyngigg
Copy link
Member

This issue was originally TRAC 5275

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

#!python
sum = 0
while sum < 10000000:
    sum += 1
    print sum 
@martyngigg
Copy link
Member Author

@martyngigg (2012-05-10T07:41:04):
There is also an issue if you remove the print statement it locks up the GUI and the loop takes an age to complete


@NickDraper (2012-10-28T11:38:22):
Moved to milestone 2.4


@NickDraper (2013-04-29T09:49:27):
Moved to r2.6 at the end of r2.5


@martyngigg (2013-07-15T08:46:42):
Batch move to 2.7


@NickDraper (2014-02-14T11:04:53):
Bulk move to assigned at the introduction of the triage step

@martyngigg martyngigg added High Priority An issue or pull request that if not addressed is severe enough to postponse a release. Python labels Jun 3, 2015
@martyngigg martyngigg self-assigned this Jun 3, 2015
@martyngigg
Copy link
Member Author

No users have ever hit this error and it's pretty hard to work around with the current architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Projects
None yet
Development

No branches or pull requests

1 participant