Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 4631eee

Browse files
author
Hendrik van Antwerpen
committed
Add comment clarifying tuple of queues
1 parent d51f6d4 commit 4631eee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stack-graphs/src/stitching.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,8 @@ impl PathStitcher {
722722
pub struct ForwardPartialPathStitcher {
723723
candidate_partial_paths: Vec<Handle<PartialPath>>,
724724
queue: VecDeque<(PartialPath, AppendingCycleDetector<OwnedOrDatabasePath>)>,
725+
// next_iteration is a tuple of queues instead of an queue of tuples so that the path queue
726+
// can be cheaply exposed through the C API as a continuous memory block
725727
next_iteration: (
726728
VecDeque<PartialPath>,
727729
VecDeque<AppendingCycleDetector<OwnedOrDatabasePath>>,

0 commit comments

Comments
 (0)