feat: support loading extreamly large files

- Allocate initial file and leaf data outside of Buffer.arena
- Disable gutter diffs for very large files
- Disable syntax highlighting for very large files
This commit is contained in:
CJ van den Berg 2024-08-05 22:05:38 +02:00
parent 7332108820
commit b09aa98f70
4 changed files with 32 additions and 11 deletions

View file

@ -13,6 +13,9 @@ const c = @cImport({
const build_options = @import("build_options");
const log = @import("log");
pub var max_diff_lines: usize = 50000;
pub var max_syntax_lines: usize = 50000;
pub const application_name = "flow";
pub const application_logo = "󱞏 ";