Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87017
| References | <CADgpKWb=q2=YEJSS1yRkgzF37nO5BNRnywm+zhcwF-MAOr6MdA@mail.gmail.com> <CALwzid=O96Jd_bwwgxOuswmW9ucoFh=4Ht1P1Msrb7POZij__w@mail.gmail.com> <CADgpKWaJkyO8yCPmTSphGjPBaCWcNUpJOwDdb7tJ-hNHPTMf4A@mail.gmail.com> <CAPTjJmpwkd107nHnOoba19oe8wg16bYxW7J1LC-Y7=Mbc64=BA@mail.gmail.com> <mdbvp0$rl2$1@ger.gmane.org> |
|---|---|
| Date | 2015-03-06 23:02 +1100 |
| Subject | Re: Speeding up permutations generation |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.107.1425643363.21433.python-list@python.org> (permalink) |
On Fri, Mar 6, 2015 at 9:33 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote: >> Is the actual generation of permutations your problem? You mentioned >> that you're using itertools, so I would expect that you're simply >> iterating over that; I hope you're not immediately trying to construct >> a list of them all, because that would cost the memory that Mark's >> response talks about. Have you actually profiled your code and found >> that generating permutations is the bottleneck, or did you just guess? >> Because even experienced programmers - even extremely experienced >> Python programmers - are usually wrong when they guess about the >> slowest part of a program. The only way to know is to measure. >> >> ChrisA >> > > s/Mark/Wolfgang/ ? Oops, yes, my bad. I read the rest of the thread, then went back up and replied to the most appropriate post for what I wanted to say, and then named the wrong person out of the two following posters. My apologies, Mark and Wolfgang! ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Speeding up permutations generation Chris Angelico <rosuav@gmail.com> - 2015-03-06 23:02 +1100
csiph-web