diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-09 10:56:11 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-09 10:56:11 +0200 |
| commit | 9983634cd59b75a5842a096cc5fbf6472e65b5cb (patch) | |
| tree | c57a4d6c059bfbad810cc85a92a471de0ae38de2 | |
| parent | c7416f18bdddf48f4535a6d48927c2355d842af9 (diff) | |
Add note about quadratic running times
| -rw-r--r-- | src/parse/lines.rs | 5 |
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}; |
