Python Forum
do you have an idea to optimize this code[recursion]]?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
do you have an idea to optimize this code[recursion]]?
#2
It's pretty unreadable. Variables and functions should have names that reflect what they are to represent. To quote Pep 8,
Quote:One of Guido’s key insights is that code is read much more often than it is written. The guidelines provided here are intended to improve the readability of code and make it consistent across the wide spectrum of Python code. As PEP 20 says, “Readability counts”.

So really can't help, have no idea what this is supposed to do. Make it readable and you will have more responses.
Reply


Messages In This Thread
RE: do you have an idea to optimize this code[recursion]]? - by jefsummers - May-19-2022, 05:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I multithread to optimize a groupby task: davisc4468 0 814 Jun-30-2023, 02:45 PM
Last Post: davisc4468
  do you have an idea for optimizing this code? netanelst 3 1,501 May-22-2022, 10:30 AM
Last Post: snippsat
  Optimization using scipy.optimize KaneBilliot 3 2,039 Nov-30-2021, 08:03 AM
Last Post: Gribouillis
  Using curve_fit to optimize function (TypeError) Laplace12 4 2,722 Aug-30-2021, 11:15 AM
Last Post: Larz60+
  is there a way to optimize my checking system? GalaxyCoyote 4 2,866 Oct-13-2019, 09:18 AM
Last Post: perfringo
  cannot import scipy.optimize.Bounds larkypython 2 7,446 May-05-2019, 04:09 AM
Last Post: larkypython
  Optimize unittest loading Nazz 3 2,667 Mar-05-2019, 11:59 AM
Last Post: Nazz
  optimize choices in multiple if ---: statements Pedroski55 2 2,987 Dec-25-2018, 05:06 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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