aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs.zig1
-rw-r--r--src/http.zig4
-rw-r--r--src/js_printer.zig4
-rw-r--r--src/node_module_bundle.zig1
4 files changed, 2 insertions, 8 deletions
diff --git a/src/fs.zig b/src/fs.zig
index fb856910e..9a222dbbc 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -1081,3 +1081,4 @@ test "PathName.init" {
}
test {}
+
diff --git a/src/http.zig b/src/http.zig
index 9db247073..83c2f8935 100644
--- a/src/http.zig
+++ b/src/http.zig
@@ -1349,10 +1349,6 @@ pub const RequestContext = struct {
threadlocal var has_loaded_buffer: bool = false;
pub fn init(rctx: *RequestContext, _loader: Options.Loader) SocketPrinterInternal {
- // if (isMac) {
- // _ = std.os.fcntl(file.handle, std.os.F_NOCACHE, 1) catch 0;
- // }
-
if (!has_loaded_buffer) {
buffer = MutableString.init(std.heap.c_allocator, 0) catch unreachable;
has_loaded_buffer = true;
diff --git a/src/js_printer.zig b/src/js_printer.zig
index d2e97532c..9e26029f3 100644
--- a/src/js_printer.zig
+++ b/src/js_printer.zig
@@ -3738,10 +3738,6 @@ const FileWriterInternal = struct {
}
pub fn init(file: std.fs.File) FileWriterInternal {
- // if (isMac) {
- // _ = std.os.fcntl(file.handle, std.os.F_NOCACHE, 1) catch 0;
- // }
-
if (!has_loaded_buffer) {
buffer = MutableString.init(alloc.dynamic, 0) catch unreachable;
has_loaded_buffer = true;
diff --git a/src/node_module_bundle.zig b/src/node_module_bundle.zig
index 79eeb2b3a..9af0f27de 100644
--- a/src/node_module_bundle.zig
+++ b/src/node_module_bundle.zig
@@ -428,6 +428,7 @@ pub const NodeModuleBundle = struct {
}
}
};
+
if (isMac) {
// darwin only allows reading ahead on/off, not specific amount
_ = std.os.fcntl(input.handle, std.os.F_RDAHEAD, 1) catch 0;