Re: reassigning values to variables question

2019-02-06 Thread yary
Hope that was as fun to write, as it was for me to read! Thanks. On Wed, Feb 6, 2019 at 12:50 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2/6/19 12:44 AM, ToddAndMargo via perl6-users wrote: > > On 2/5/19 11:56 PM, ToddAndMargo via perl6-users wrote: > >> On 2/5/19 8:34

Re: reassigning values to variables question

2019-02-06 Thread ToddAndMargo via perl6-users
On 2/6/19 12:44 AM, ToddAndMargo via perl6-users wrote: On 2/5/19 11:56 PM, ToddAndMargo via perl6-users wrote: On 2/5/19 8:34 PM, ToddAndMargo via perl6-users wrote: On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote:     Hi All,     If I

Re: reassigning values to variables question

2019-02-06 Thread ToddAndMargo via perl6-users
On 2/5/19 11:56 PM, ToddAndMargo via perl6-users wrote: On 2/5/19 8:34 PM, ToddAndMargo via perl6-users wrote: On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote:     Hi All,     If I have a variable of type Buf which 1000 bytes in it    

Re: reassigning values to variables question

2019-02-06 Thread ToddAndMargo via perl6-users
On 2/5/19 8:34 PM, ToddAndMargo via perl6-users wrote: On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote:     Hi All,     If I have a variable of type Buf which 1000 bytes in it     and I find the five bytes I want, is it faster, slower,    

Re: reassigning values to variables question

2019-02-05 Thread ToddAndMargo via perl6-users
On Sun, Feb 3, 2019 at 9:36 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: Hi All, If I have a variable of type Buf which 1000 bytes in it and I find the five bytes I want, is it faster, slower, or no difference in speed to overwrite the same

Re: reassigning values to variables question

2019-02-05 Thread yary
There are modules to time two pieces of code and show the difference https://github.com/perl6-community-modules/perl6-Benchy https://github.com/tony-o/perl6-bench You can write up the two versions you're thinking of, feed them to the benchmark module, and show us what you find! -y On Sun, Feb

reassigning values to variables question

2019-02-03 Thread ToddAndMargo via perl6-users
Hi All, If I have a variable of type Buf which 1000 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