Skip to content

Commit

Permalink
Use local info to avoid calls to createLogicalLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Jun 12, 2024
1 parent ba518db commit 63befd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analysis/typepal/Collector.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,9 @@ Collector newCollector(str modelName, map[str,Tree] namedTrees, TypePalConfig co

map[loc,loc] buildLogical2physical(Defines defines){
map[loc,loc] my_logical2physical = logical2physical;
map[loc,loc] my_physical2logical = invertUnique(logical2physical);
for(Define def <- defines){
logicalLoc = config.createLogicalLoc(def, modelName, config.typepalPathConfig);
logicalLoc = my_physical2logical[def.defined] ? config.createLogicalLoc(def, modelName, config.typepalPathConfig);
if(logicalLoc != def.defined){
if(my_logical2physical[logicalLoc]?){
if(my_logical2physical[logicalLoc] != def.defined){
Expand Down

0 comments on commit 63befd5

Please sign in to comment.