Skip to content

Commit e4204f0

Browse files
committed
Additional perf boost for Nim
1 parent af38e6f commit e4204f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nim.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ proc readPlaces: tuple[nodes: seq[Node], num: int] =
2626

2727
return (nodes, numNodes)
2828

29-
proc getLongestPath(nodes: seq[Node], nodeId: int, visited: var seq[bool]): int =
29+
proc getLongestPath(nodes: openarray[Node], nodeId: int, visited: var openarray[bool]): int =
3030
visited[nodeId] = true
3131
for neighbour in nodes[nodeId].neighbours:
3232
if not visited[neighbour.dest]:

0 commit comments

Comments
 (0)