Re: Create a string with (n) copies of the same character



"Dr J R Stockton" <jrs@xxxxxxxxxxxxxxxxxx> wrote in message
news:5CmvgXeYwD9GFw8X@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In microsoft.public.scripting.jscript message <urk523B$HHA.4584@TK2MSFTN
GP03.phx.gbl>, Fri, 21 Sep 2007 08:06:55, Anthony Jones
<Ant@xxxxxxxxxxxxxxxx> posted:
"Dr J R Stockton" <jrs@xxxxxxxxxxxxxxxxxx> wrote in message
news:mheYoFE8Lm8GFwEr@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

For shortish strings, yours is faster. For longish strings, mine is
much faster. For intermediate strings, it probably depends on the
number of "1" bits in the binary integer representation of the length.


Define 'longish'.
Where do the (char count by time) lines cross for the two approaches?

Now that certainly will be implementation-dependent. Test it yourself,
it's easy enough. For my purpose, I only tried a few sizes.


Where in your testing did the lines cross? I won't hold you to them honest
I'd just like to know what your results are in your testing.

--
Anthony Jones - MVP ASP/ASP.NET


.



Relevant Pages

  • Re: A few thoughts on teaching.
    ... so that the finger can ... could you play guitar at all without being able to cross strings?- Hide quoted text - ... You usually don't want to cross strings by changing the ... Barruecco and you will se a consistant finger angle in their crossing. ...
    (rec.music.classical.guitar)
  • Re: Luxilon Big Banger question?
    ... Putting gut on the mains and poly on the cross yields more playability (ball ... Fed strung his cross strings 2-3 lbs lower than on his mains, ...
    (rec.sport.tennis)
  • Re: Question for stringing specialist or players tried different hybrid strings?
    ... having Lux in the main/gut in the cross and hybrid having Lux in the ... main/Lux in cross, but it didn't work for me at all after three hours ... So I'm cutting the strings and thinking about having Lux in the main ...
    (rec.sport.tennis)
  • Re: A few thoughts on teaching.
    ... think I was a bit faster than that when I was younger! ... Anyway, first, can you cross the strings tirando at 184 or only on one string? ... my teacher plays the rising and falling arpeggio in prelude 2 Villa Lobos con bravura not with tempo and the second time without ligados. ...
    (rec.music.classical.guitar)
  • Re: Create a string with (n) copies of the same character
    ... For intermediate strings, ... number of "1" bits in the binary integer representation of the length. ... I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt; ...
    (microsoft.public.scripting.jscript)

Loading