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 3, 2019 at 9:36 PM ToddAndMargo via perl6-users < perl6-users@perl.org> 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 >