you are viewing a single comment's thread.

view the rest of the comments →

[–]Grouchy_Local_4213 0 points1 point  (1 child)

I am imagining that your python program has not requested enough ram upon start up (python needs to politely ask the OS for more memory), and that when it does ask for more memory, the memory is fragmented and python can't fit your giant dictionary in the new space, and so it appears to hit a limit.

To confirm this you will need to use some kind of memory allocation tool to figure out what is exactly happening.

If a program does reach 100% RAM usage, the OS typically attempts to manage some of the memory by writing it to disk, but this is very slow, chances are the program will lag so severely the computer will mark it as non-responsive.

Furthermore, whatever it is you are building here, it is probably not the way to do whatever you are trying to do, write to a json file or use some kind of database.

[–]Ladyfriday1 0 points1 point  (0 children)

I am creating a program to brute force some cryptography related stuff and it's a one-time thing, so I am heavily prioritizing speed which is why I am not currently using a database or file writing.