Python Forum
Thread Rating:
  • 5 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I do this faster?
#2
I'd start by making it functional.  Once it works that way, you can look into paralleling it to take advantage of multiple cpu cores.

Without actually testing the code, here's an example of making it functional:
transform = lambda t: (t**e) % n
wordlist_krypterad = map(transform, wordlist_ascii_int)
Reply


Messages In This Thread
Can I do this faster? - by Gasimoe - Feb-28-2017, 06:22 PM
RE: Can I do this faster? - by nilamo - Feb-28-2017, 06:37 PM
RE: Can I do this faster? - by stranac - Feb-28-2017, 07:19 PM
RE: Can I do this faster? - by zivoni - Feb-28-2017, 08:00 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020