程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

out of memory solution (the reason why python is slow)

編輯:Python

Hello everyone, meet again, I'm your friend Quanstack Jun.

After a whole day of tossing and changing the computer and reinstalling the system, reinstalling various software plug-ins

Finally found out of memory just because one line of code was written less

The inner collapse cannot be described in words

Although it was originally an oolong game, but in the process of solving problems and getting some new skills

It can't be said that there is no gain at all [forcibly harvested] [a capitalized psychological comfort]

After starting my 4G small notebook out of memory, I switched to a computer with 32G memory

It took me a long time to reinstall the system to install the program and run it, but I found it was out of memory

I'm confused

[Actually, because I wrote less sparql.setQuery(queryString) statement, the entire dataset is queried by default [manual goodbye

But I didn't know at that time. I thought 32G memory was enough. Why was it still out of memory?

Then I found this question on Zhihu

https://www.zhihu.com/question/29146270

How to fix the out of pythonmemory problem

Some respondents said:

Some versions of Windows can use limited memory. 32-bit programs can only use less than 4G of memory.

Are you using a 32-bit system, or have 32-bit python installed on a 64-bit system.In either case, the memory occupied by a single program cannot exceed 4G.

This computer system is 64-bit. I checked that the python I installed was 32-bit, and I decided to reconfigure it quickly with 64.

It doesn't overflow, but it seems that all the rdf triples are found and can't stop....

At this point, I realized that the program may have been written wrong. I looked at it and didn't write a query code, which caused me to use all my martial arts and toss in vain. I also doubted my life several times in the middle, and said nothing.

I choose to die.

Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/128446.htmlOriginal link: https://javaforall.cn


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved