|
From: | L A Walsh |
Subject: | Re: efficient way to use matched string in variable substitution |
Date: | Mon, 23 Aug 2021 12:41:58 -0700 |
User-agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
On 2021/08/23 12:10, Greg Wooledge wrote:
On Mon, Aug 23, 2021 at 11:36:52AM -0700, L A Walsh wrote:Starting with a number N, is there an easy way to print its digits into an array?"Easy"? Or "efficient"? Your subject header says one, but your body says the other.
Efficient, in my vocabulary, also includes my time in coding, typing and remembering ... i.e. it's not just limited to computer time. :-) However, thanks for the examples! I do appreciate them! The problem with using timing tests on interpreted code, is that often what takes 'X' time today, may take more or less tomorrow after many refactorings, patches and code-restructuring. That isn't to day I don't use the same methods at times on specific problems...oh well... Computer algorithms, coding styles, languages and benchmarks are pretty fleeting these days...not to mention different on different platforms and by different compilers...sigh. I remember counting clock cycles in assembler code...oi!
[Prev in Thread] | Current Thread | [Next in Thread] |