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

reassigning values to variables question

Thread Next
From:
ToddAndMargo via perl6-users
Date:
February 4, 2019 05:35
Subject:
reassigning values to variables question
Message ID:
131c3da0-1273-be85-e240-3eb61274a8d8@zoho.com
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 Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About