Huge speed boost by reducing the number of method calls in GCode.pm

This commit is contained in:
Alessandro Ranellucci 2013-08-28 18:12:20 +02:00
parent 73c05a6092
commit 055273fbc8
5 changed files with 85 additions and 64 deletions

View file

@ -65,6 +65,11 @@ sub points {
return $self->polyline;
}
sub last_point {
my $self = shift;
return $self->polyline->[-1];
}
sub is_perimeter {
my $self = shift;
return $self->role == EXTR_ROLE_PERIMETER