Home › Forums › Nazca › Questions and Answers › Very slow Python interpreter speeds for subwavelength grating waveguides › Reply To: Very slow Python interpreter speeds for subwavelength grating waveguides
15 January 2021 at 18:27
#6335
Xaveer
Moderator
Hi,
There are several ways to speed this up (possibly by many orders of magnitude).
- For repetitive structures (photonic crystals, gratings, …) you can use GDS arrays. See tutorial https://nazca-design.org/photonic-crystal-gds-array/
- Using polygons (not cells) for mask elements, if you only need polygons. Cells act as circuit elements with pins and lots of extra info, which may not be needed. Reuse the polygon when possible:
my_pol = nd.Polygon(points=[(),(),()...], layer=...) my_pol.put(...) my_pol.put(...) my_pol.put(...)
- Switch off “group connect” (automated netlist connections) when not needed:
nd.cfg.group_connect = False
Xaveer (and Ronald)