summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-09 10:56:11 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-09 10:56:11 +0200
commit9983634cd59b75a5842a096cc5fbf6472e65b5cb (patch)
treec57a4d6c059bfbad810cc85a92a471de0ae38de2 /src
parentc7416f18bdddf48f4535a6d48927c2355d842af9 (diff)
Add note about quadratic running times
Diffstat (limited to 'src')
-rw-r--r--src/parse/lines.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parse/lines.rs b/src/parse/lines.rs
index bbdedaa5..b6d8a60f 100644
--- a/src/parse/lines.rs
+++ b/src/parse/lines.rs
@@ -1,3 +1,8 @@
+// FIXME:
+// Both `LineMap::location` and `search_column` can lead to quadratic compile
+// times for very long lines. We probably need some smart acceleration structure
+// to determine columns.
+
use super::Scanner;
use crate::syntax::{Location, Pos};