terminal: change default hyperlink count to zero

This commit is contained in:
Mitchell Hashimoto
2024-06-09 12:04:50 -07:00
parent 25d1e861ec
commit 75e1655228
2 changed files with 2 additions and 2 deletions

View File

@ -857,7 +857,7 @@ fn HashMapUnmanaged(
/// because capacity is rounded up to the next power of two. This is /// because capacity is rounded up to the next power of two. This is
/// a design requirement for this hash map implementation. /// a design requirement for this hash map implementation.
pub fn layoutForCapacity(new_capacity: Size) Layout { pub fn layoutForCapacity(new_capacity: Size) Layout {
assert(std.math.isPowerOfTwo(new_capacity)); assert(new_capacity == 0 or std.math.isPowerOfTwo(new_capacity));
// Pack our metadata, keys, and values. // Pack our metadata, keys, and values.
const meta_start = @sizeOf(Header); const meta_start = @sizeOf(Header);

View File

@ -46,7 +46,7 @@ const UriAlloc = BitmapAllocator(uri_chunk);
/// so it is a worst possible byte size. You probably don't need a large /// so it is a worst possible byte size. You probably don't need a large
/// value here to accomodate many cells for typical (rare) hyperlink /// value here to accomodate many cells for typical (rare) hyperlink
/// usage. /// usage.
const hyperlink_count_default = 1; const hyperlink_count_default = 0;
const hyperlink_bytes_default = hyperlink_count_default * @max( const hyperlink_bytes_default = hyperlink_count_default * @max(
(uri_chunk * 2), // ID + URI (uri_chunk * 2), // ID + URI
@sizeOf(HyperlinkEntry), // Entry @sizeOf(HyperlinkEntry), // Entry