Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- MUST NOT modify any dune file during development unless explicitly asked

See `.agents/skills/` for platform-specific development guides and `docs/agent-guide/` for design specifications.
- Avoid O(n²) `List` patterns such as `List.concat` and repeated `List.append` on large sequences; when the project already depends on the `rrbvec` package, use `Rrbvec` vectors instead.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove List.concat from the quadratic examples

List.concat traverses each input element once, so ordinary uses such as flattening a list of lists are O(total elements), not O(n²). Labeling it as inherently quadratic creates repository-wide guidance that may cause agents to replace a linear, idiomatic operation unnecessarily; narrow this rule to repeated append/concatenation patterns whose growing left operand actually causes quadratic work.

Useful? React with 👍 / 👎.

Loading