Skip to content

Commit

Permalink
Add a little note about size
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Dec 16, 2024
1 parent 64c33ba commit 5fe841f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions calyx-utils/src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ struct PosData {
}

/// Source position information for a Calyx program.
///
/// Note: This is rather large because of [`boxcar::Vec`] so it may be worth
/// putting those behind a [`Box`] in the future. Granted the PositionTable is
/// only ever constructed once statically so the extra indirection probably
/// doesn't actually buy us anything.
struct PositionTable {
/// The source files of the program
files: boxcar::Vec<File>,
Expand Down

0 comments on commit 5fe841f

Please sign in to comment.