Skip to content

Commit c7b34d8

Browse files
AkkermanAkkerman
Akkerman
authored and
Akkerman
committed
NH-3777: Replaced NHibernate.Loader.TopologicalSorter by a more performant implementation.
- Because of a slight change in the (internal) Interface of TopologicalSorter, JoinWalker had to be adjusted (note that the removed parameter i was identical to the return value for the current use of the sorter)
1 parent 1514487 commit c7b34d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Loader/TopologicalSorter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void eliminateNode(Node node)
8383

8484
private Node getNodeWithoutSuccessors()
8585
{
86-
// note: It would be more performant to check the nodes in reverse order, since that would allow decreases of "_nodeCount" in "eliminateNode"
86+
// note: It would be more performant to check the nodes in reverse order, since that would allow decreases of "_nodeCount" in "eliminateNode"
8787
// as often as possible since high indices are preferred over low indices whenever there is a choice.
8888
// However, several test cases are violated if this change is made; It seems not all restrictions are properly added as edges here.
8989
for (int i = 0; i < _nodeCount; i++)

0 commit comments

Comments
 (0)