From 817cb5b8e8c7239dcbcdb33839963f232bf659f5 Mon Sep 17 00:00:00 2001 From: zy C Date: Sat, 26 Sep 2026 18:08:13 -0700 Subject: [PATCH] docs(AGENTS): prefer Rrbvec over O(n^2) List concat patterns --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 141a991..854ddb2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,3 +9,4 @@ - MUST not use magic methods to cast types. If a type cast is unavoidable, explain the reason in a code comment. - MUST not disable compiler warnings +- 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.