diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2024-01-13 21:25:10 -0800 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2024-01-13 21:25:10 -0800 |
| commit | b275950c2e8dbffcf8b2a8915b0bbfab24dae4ff (patch) | |
| tree | 79bf39950168743cb87edb0e9d2dfa02c62b81af /src | |
| parent | c92c5a78e6333b6025131c031c6466413e60e442 (diff) | |
| download | editor-b275950c2e8dbffcf8b2a8915b0bbfab24dae4ff.tar.zst | |
Max 15 children per node.
A btree with only 3 max children per node is like using a vibrator on
the "low" setting: it'll get the job done, but it's not
exactly efficient.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rope.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rope.rs b/src/rope.rs index 01867f8..cc98422 100644 --- a/src/rope.rs +++ b/src/rope.rs @@ -3,7 +3,7 @@ use std::io::{ErrorKind, Read, Write}; use std::rc::Rc; const MAX_NODE_SIZE: usize = 1024; -const MAX_CHILDREN: usize = 5; +const MAX_CHILDREN: usize = 15; fn read(r: &mut dyn Read, buf: &mut [u8]) -> Result<usize, std::io::Error> { loop { |
