nodejs / nodejs/performance

Bring back clonefile on Mac OS X

Open
#110 3 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
399
Forks
11
Avg merge
29m
Merged PRs (30d)
1

Description

Part of the reason why bun install is almost instantaneous is because of the use of clonefile, which implement a copy-on-write mechanism, actually avoiding the writes to disk altogether.

We exposed this via libuv some time ago, but this behavior was reverted in https://github.com/libuv/libuv/pull/3987.

cc @santigimeno @cjihrig

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read libuv pull request 3987 first, then trace the prior exposure of clonefile described in this issue. Done means restoring clonefile-backed copy-on-write behavior for macOS while retaining support on other platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
operating-systems, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.