More constants, less strings => ess memory usage

This commit is contained in:
Alessandro Ranellucci 2012-05-19 15:40:11 +02:00
parent 8fe5d11624
commit aa9563f00b
10 changed files with 51 additions and 27 deletions

View file

@ -1,7 +1,6 @@
package Slic3r::ExtrusionLoop;
use Moo;
# the underlying Slic3r::Polygon objects holds the geometry
has 'polygon' => (
is => 'ro',
@ -9,7 +8,7 @@ has 'polygon' => (
handles => [qw(is_printable nearest_point_to)],
);
# perimeter/fill/solid-fill/bridge/skirt
# see EXTR_ROLE_* constants in ExtrusionPath.pm
has 'role' => (is => 'rw', required => 1);
sub BUILD {