Four Years of Service
Posts: 226
Threads: 107
Python Help please 12-22-2021, 03:58 PM
#1
Okay so i wrote my first Python script ever and im really new to it but
It runs perfectly fine on Linux but if i run it on windows it literally eats my Ram & CPU..
Any ideas of what could be causing this ?
•
Fourteen Years of Service
Posts: 74,291
Threads: 317
RE: Python Help please 12-23-2021, 02:45 AM
#2
Perhaps post the code.
As such, members can view It and hopefully Identify the cause.
•
Nine Years of Service
Posts: 3,093
Threads: 132
RE: Python Help please 12-23-2021, 04:41 AM
#3
Well, you should probably post the code first so we can see it. Either use a pasting service, or paste the code in your thread with a code block.
•
Four Years of Service
Posts: 97
Threads: 4
RE: Python Help please 12-23-2021, 04:55 AM
#4
If you couldn't share it out of shyness, well I guess we cannot help you but an idea is that check out if there is "too much" array and data manipulation going on, and also check out if you are using the appropriate libraries and modules for windows.
•
Four Years of Service
Posts: 97
Threads: 4
RE: Python Help please 12-23-2021, 06:24 PM
#6
Nahh it's alright, I don't expect a very fast reply from you nor anyone from here since this is a forum, and its an open-board. Anyone can reply anytime they want or they can also not reply. Lol. Just kidding.
I believe the best way for you to deal with threading problem or whatsoever is not integrate it with C libraries or much better, don't use python and use a much better programming language that deals with threads and at the same time, you can play along and fast like a compiled language.
You can use C, C++ or Rust maybe? What do you think?
•
Five Years of Service
Posts: 743
Threads: 63
RE: Python Help please 12-23-2021, 08:03 PM
#8
Glad you fixed this but next time consider posting the code so someone can diagnose its issues. +1 for fixing compatibility so quickly because it sometimes takes me days to find problem functionality in my own code.
ed25519/0x21AB6B6A6CB2C337
C87D87466FD205945CF10A3821AB6B6A6CB2C337