From b275950c2e8dbffcf8b2a8915b0bbfab24dae4ff Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sat, 13 Jan 2024 21:25:10 -0800 Subject: 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. --- src/rope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rope.rs') 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 { loop { -- cgit v1.3.1