Bottom Page

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?
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote
#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
Quote
#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?
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  iterrows() performance issue mohankris_v 0 359 Nov-20-2018, 10:33 AM
Last Post: mohankris_v
  why so much differnt performance in python 2.7.10, 2.7.14 and 3.6.4 jiangtianyong 0 757 Feb-09-2018, 06:29 AM
Last Post: jiangtianyong

Forum Jump:


Users browsing this thread: 1 Guest(s)