Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase availible memory for python in windows

I'm working on a program in python on Windows 7 that matches features between multiple images in real time. It is intended to be the only program running.

When I run it on my laptop, it runs very slowly. However, when I check how much memory it is using with the task manager, it is only using about 46,000 KB. I would like to increase the memory available to the python process so that it can use all available memory.

Any advice would be greatly appreciated.

like image 898
pkinsky Avatar asked Jun 22 '26 20:06

pkinsky


2 Answers

Python does not have a built-in mechanism for limiting memory consumption; if that's all it's using, then that's all it'll use.

like image 184
Ignacio Vazquez-Abrams Avatar answered Jun 24 '26 11:06

Ignacio Vazquez-Abrams


If you're doing image comparisons, chances are good you are CPU-bound, not memory-bound. Unless those are gigantic images, you're probably OK.

So, check your code for performance problems, use heuristics to avoid running unnecessary code, and send what you've got out for code review for others to help you.

like image 37
Jordan Avatar answered Jun 24 '26 09:06

Jordan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!