Improved speed in FlatCAMRTreeStorage.
This commit is contained in:
@@ -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)
|
||||
@@ -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)
|
||||
@@ -1,6 +0,0 @@
|
||||
import cProfile
|
||||
import pstats
|
||||
from camlib import *
|
||||
|
||||
g = Geometry()
|
||||
|
||||
Reference in New Issue
Block a user