diff options
author | Bernardo <[email protected]> | 2018-12-22 14:44:27 +0000 |
---|---|---|
committer | Bernardo <[email protected]> | 2018-12-25 19:03:14 +0000 |
commit | 5c8525ce4ae8bb969f2ac263bf14adad1c835c03 (patch) | |
tree | 19df6e95432bbbc0e1c9c75b0867ffe3d378fa0a /crates/ra_editor/benches | |
parent | 36f2b1f3b9c36ace65852d971f998a090cf9b5d5 (diff) |
column translation implemented but not quite working yet
Diffstat (limited to 'crates/ra_editor/benches')
-rw-r--r-- | crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs b/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs index b345a91ae..89ed99823 100644 --- a/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs +++ b/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs | |||
@@ -72,10 +72,10 @@ fn compare_translates(c: &mut Criterion) { | |||
72 | }) | 72 | }) |
73 | }); | 73 | }); |
74 | 74 | ||
75 | let f2 = Fun::new("count_newlines", |b, _| { | 75 | let f2 = Fun::new("translate_offset_with_edit", |b, _| { |
76 | b.iter(|| { | 76 | b.iter(|| { |
77 | let d = &*DATA; | 77 | let d = &*DATA; |
78 | line_index_utils::count_newlines(d.offset, &d.line_index, &d.edits); | 78 | line_index_utils::translate_offset_with_edit(&d.line_index, d.offset, &d.edits); |
79 | }) | 79 | }) |
80 | }); | 80 | }); |
81 | 81 | ||