Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
performance time
#1
back in the day when computers were slower and were often programmed in assembly, much concern was given to choice of code to achieve a lower number of cycles. these days, especially with architecture diversity, we focus more on good algorithms and development time. i have been wonder about the push away from good algorithms to purely development time. i wonder if Python has any effect, one way or the other, on the development time/cost of choosing good algorithms. of course, if you had 2 implementations of foo() to choose from, you would choose O(log(n)) over O(n*n). but what you had the same kind of choice of 2 implementations of bar() and it was going to be time consuming to discover their performance. knowing usage patterns will be a factor in making the decision. and that may even be a guess. what if sales keeps pushing on delivery time? can Python help in these kinds of issues these days?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Quote:“The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.” --Donald Knuth, The Art of Computer Programming

BDFL was heavily influenced by Knuth and therefore Python's Design Philosophy includes among other things:

Quote:- Don’t fret too much about performance--plan to optimize later when needed.
- Don’t try for perfection because “good enough” is often just that.
....
Rather than striving for perfection, early adopters found that Python worked "well enough" for their purposes. As the user-base grew, suggestions for improvement were gradually incorporated into the language. As we will seen in later sections, many of these improvements have involved substantial changes and reworking of core parts of the language.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#3
too often "good enough", to sales, means gross sales revenue. i a way, Python helps. first to market can mean great sales. but what if the competitor has a much higher performance? hopefully, going back and switching to better algorithms is what's needed. but maybe all new stuff needs to be analyzed. can algorithm analysis be done in Python?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python performance Jacques 4 2,331 Jun-23-2020, 01:03 PM
Last Post: GaryNR

Forum Jump:

User Panel Messages

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