Re: New rtrim()

new topic     » goto parent     » topic index » view thread      » older message » newer message

Colin,

> 
> Igor Kachan wrote:
> 
> > 
> > Yes, Colin, this function is not the noticeable
> > one for the putsxy.e perfomance.
> > 
> > But try please the test below.
> > 
> 
> Igor,
> 
> Your test program always returns an empty sequence
> instead of a slice,

I have tested

S=repeat({1,1}&repeat(0,1000),1000)

just now.

Result is

10.27 with rtrim_()
14.34 with rtrim()

> because your test sequences contain only zeros.
> This isn't a realistic 
> test, and it gives you an artificially fast score 
> for your version of 
> rtrim().

I think, this test is just the hardest
for such the program.

<snip>

Don't worry, use, thing is good enough
and very well tested now  smile

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu