Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Bundows faster #10196

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/env.ps1
Expand Up @@ -41,6 +41,9 @@ $CXXFLAGS = '/O2'
if ($Baseline) {
$CFLAGS += ' -march=nehalem'
$CXXFLAGS += ' -march=nehalem'
} else {
$CFLAGS += ' -march=haswell'
$CXXFLAGS += ' -march=haswell'
}

$CMAKE_FLAGS = @(
Expand Down
3 changes: 2 additions & 1 deletion src/bun.js/node/node_fs.zig
Expand Up @@ -5941,7 +5941,8 @@ pub const NodeFS = struct {
return Maybe(Return.CreateWriteStream).todo();
}

/// This function is `cpSync`, but only if you pass `{ recursive: ..., force: ..., errorOnExist: ..., mode: ... }'
/// This function is `cpSync`, but only if you pass
/// { recursive: ..., force: ..., errorOnExist: ..., mode: ... }
/// The other options like `filter` use a JS fallback, see `src/js/internal/fs/cp.ts`
pub fn cp(this: *NodeFS, args: Arguments.Cp, comptime flavor: Flavor) Maybe(Return.Cp) {
comptime bun.assert(flavor == .sync);
Expand Down