Improved speed in FlatCAMRTreeStorage.

This commit is contained in:
jpcaram
2015-02-06 17:16:11 -05:00
parent 23b20ba716
commit 17a3316ce4
4 changed files with 34 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
# Run kernprof -l -v gerber_parsing_line_profile_1.py
import sys
sys.path.append('../../')
from camlib import *
from shapely.geometry import Polygon
poly = Polygon([(0.0, 0.0), (1.0, 0.0), (1.0, 0.5), (0.0, 0.5)])
result = Geometry.clear_polygon2(poly, 0.01)

View File

@@ -0,0 +1,11 @@
import cProfile
import pstats
from camlib import *
from shapely.geometry import Polygon
poly = Polygon([(0.0, 0.0), (1.0, 0.0), (1.0, 0.5), (0.0, 0.5)])
cProfile.run('result = Geometry.clear_polygon2(poly, 0.01)',
'toollist_minimization_profile', sort='cumtime')
p = pstats.Stats('toollist_minimization_profile')
p.sort_stats('cumulative').print_stats(.1)

View File

@@ -1,6 +0,0 @@
import cProfile
import pstats
from camlib import *
g = Geometry()