develooper Front page | perl.perl6.users | Postings from February 2019

Re: reassigning values to variables question

Thread Previous | Thread Next
February 5, 2019 16:43
Re: reassigning values to variables question
Message ID:
There are modules to time two pieces of code and show the difference

You can write up the two versions you're thinking of, feed them to the
benchmark module, and show us what you find!


On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users <> wrote:

> Hi All,
> If I have a variable of type Buf which 10000000 bytes in it
> and I find the five bytes I want, is it faster, slower,
> or no difference in speed to overwrite the same variable
> with the five bytes?  Or is it faster to put the five bytes
> from the first variable into a second variable?
> Many thanks,
> -T

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About