Anonymous avatar Anonymous committed 94a67ec

A significant optimisation.

Comments (0)

Files changed (1)

abc-path/generator/generate-abs-path.pl

         # print "Last state = " . Dumper($last_state) . "\n";
         # print "Layout = \n" . $self->get_layout_as_string($last_state->{layout}) . "\n";
 
+        my $next_idx = shift(@{$last_state->{cells}});
+
+        if (!defined($next_idx))
+        {
+            pop(@dfs_stack);
+            next DFS;
+        }
+
         {
             my @connectivity_stack = (index($l, "\0"));
 
             }
         }
 
-        my $next_idx = shift(@{$last_state->{cells}});
-
-        if (!defined($next_idx))
-        {
-            pop(@dfs_stack);
-            next DFS;
-        }
-
         my $next_layout = $l;
         vec($next_layout, $next_idx, 8) = 1+@dfs_stack;
         my $next_state =
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.