Re: How to increase the speed of this program?
- From: Fredrik Lundh <fredrik@xxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 20:07:07 +0100
John Machin wrote:
Thanks, that's indeed faster than array(t, [v]*n) but what I had in
mind was something like an additional constructor:
array.filledarray(typecode, repeat_value, repeat_count)
which I speculate should be even faster.
before you add a new API, you should probably start by borrowing the repeat code from Object/stringobject.c and see if the speedup is good enough.
</F>
.
- References:
- How to increase the speed of this program?
- From: HYRY
- Re: How to increase the speed of this program?
- From: Leo Kislov
- Re: How to increase the speed of this program?
- From: Peter Otten
- Re: How to increase the speed of this program?
- From: Peter Otten
- Re: How to increase the speed of this program?
- From: John Machin
- Re: How to increase the speed of this program?
- From: Fredrik Lundh
- Re: How to increase the speed of this program?
- From: John Machin
- How to increase the speed of this program?
- Prev by Date: Re: SPE (Stani's Python Editor) web site?
- Next by Date: Re: How to increase the speed of this program?
- Previous by thread: Re: How to increase the speed of this program?
- Next by thread: Re: How to increase the speed of this program?
- Index(es):
Relevant Pages
|