mirror of https://github.com/KLayout/klayout.git
Maybe fixed a performance issue (layout object needs to be locked)
This commit is contained in:
parent
233574598b
commit
339a2a6fd7
|
|
@ -1210,6 +1210,8 @@ DEFImporter::read_components (std::list<std::pair<std::string, CellInstArray> >
|
|||
void
|
||||
DEFImporter::do_read (db::Layout &layout)
|
||||
{
|
||||
db::LayoutLocker locker (&layout);
|
||||
|
||||
double dbu_mic = 1000.0;
|
||||
double scale = 1.0 / (dbu_mic * layout.dbu ());
|
||||
|
||||
|
|
@ -1405,8 +1407,6 @@ DEFImporter::do_read (db::Layout &layout)
|
|||
|
||||
if (! groups.empty () && options ().separate_groups ()) {
|
||||
|
||||
db::LayoutLocker locker (&layout);
|
||||
|
||||
others_cell = &layout.cell (layout.add_cell ("NOGROUP"));
|
||||
design.insert (db::CellInstArray (others_cell->cell_index (), db::Trans ()));
|
||||
|
||||
|
|
|
|||
|
|
@ -941,6 +941,8 @@ LEFImporter::read_macro (Layout &layout)
|
|||
void
|
||||
LEFImporter::do_read (db::Layout &layout)
|
||||
{
|
||||
db::LayoutLocker locker (&layout);
|
||||
|
||||
// TODO: what to do with that value?
|
||||
// double dbu_mic = 1000;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue