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

This commit is contained in:
Alessandro Ranellucci committed 2013-08-28 20:38:22 +02:00
1 parent 73c05a6092
commit 055273fbc8
5 files changed
+85 -64

No files matched your search

+5
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