frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

disk-perf-git-and-pnpm aims to prove that something is wrong with APFS on macOS

https://github.com/NullVoxPopuli/disk-perf-git-and-pnpm
27•robin_reala•1h ago

Comments

systemz•1h ago
How do we know it's not something related more to how Node.js handles I/O? Repo uses only JS
tuyiown•1h ago
It's even worse, it's not excluded that it might be a pure pnpm issue
udev•56m ago
The clean test is just an invocation of git clean, and shows the same kind of variation across operating systems, file systems, etc.
semiquaver•59m ago
I think it’s much more likely that I/O syscalls on MacOS are the culprit of slowness than APFS. I don’t see any entries in the table against HFS+.
c0balt•52m ago
That would also match with the workaround of using a Linux VM (assuming that VM disk i/o is bypassing the relevant part of the darwin i/o subsystem)
llimllib•19m ago
node/npm operations are vastly slower for me on docker with a linux vm, I have tested this before.

APFS does suck though, don't get me wrong

edit: I just tested, 36s for an `npm i` on a decently large project I have locally, 46s with an overlay fs

ZeroConcerns•54m ago
It's interesting that both NTFS and APFS have now apparently been declared 'broken' due to performance problems with two very specific applications (Git and NPM), and that the reverse statement, that is's perhaps those applications that are being unreasonable, isn't quite as fashionable.

I mean, I don't use NPM, but I recently copied over some small-ish raw Git repositories between machines, and had several WTF moments when I looked at what was actually going over the wire.

Instead of refactoring two of the planet's most widely-used 'consumer' file systems, perhaps https://www.sqlite.org/appfileformat.html should be seen as a more reasonable way forward?

p_ing•49m ago
"NTFS" is fine, the Windows File System Filters are the culprit of I/O performance problems [with many small files/requests] on Windows.
jandrese•12m ago
It's shocking how much performance you gain by temporarily turning off Windows Defender. I had a local disk to disk copy that the Windows File Transfer dialog estimated was going to finish in 10 hours after it settled down. It wasn't even that much data, just a few hundred GB, but that consisted of a great number of small files. On a hunch I tried disabling Windows Defender and the estimate dropped to about 30 minutes, and in the end it was spot on.
ynik•3m ago
Using a second partition D: is already twice as fast at small-file-writes compared to the system partition C:. This was on Windows 10 with both partitions using NTFS on the same SSD, and everything else on default settings.

This is because C: has additional file system filters for system integrity that are not present on other drives; and also because C: has 8.3 name compatibility enabled by default, but additional NTFS partitions have that disabled. (so if your filenames are longer than the 8.3 format, Windows has to write twice the number of directory entries)

adithyassekhar•46m ago
It's shockingly faster in WSL too.
tuyiown•38m ago
I'm with you on this one. Massive IO on directories with many files is only reliable when a single process access to it, which is not the case, fs are by definition open to concurrent IO. Even though it's true that several processes having uncoordinated reading and writing in the same directories is not a typical case, I'm not sure it's something one can afford to ignore.

But in the end both npm and git ends up having mass writing files in their use cases, regardless of meta data that could be put in a sqlite-like db. Making things faster safely really implies having those apps operating on some OS features that would allow of acquiring lock and committing semantics on fs subtrees or equivalent.

refulgentis•1m ago
I am quite surprised by:

- pathological filesystem behavior => git/npm/whoever should use a SQLite DB as a flat file rather than having multiple files.

- little to no pushback

tuyiown•50m ago
This got me curious and it seems that there is known APFS behaviors slowing things down on parallel I/O on same folders [1]

I would suspect that this is related to to the fact that reading/writing dirs have no atomic semantics in POSIX fs, and same directories are easily read/written simultaneously by unrelated processes, but surely is cause to edge cases bugs, especially in a world with backup system based on fs snapshots.

This is a sad state of affairs.

https://gregoryszorc.com/blog/2018/10/29/global-kernel-locks...

whartung•36m ago
Doesn’t macOS have dtrace?

Couldn’t these tests be instrumented to give a deeper dive into what may be happening here?

Handoffs vs. flowcharts for agents, in light of OpenAI's visual builder

https://blog.rowboatlabs.com/handoffs-vs-flowcharts-for-agents-in-light-of-openais-visual-builder/
1•segmenta•2m ago•1 comments

Ask HN: Why does ICANN allow indefinite domain parking?

1•gtirloni•4m ago•0 comments

Show HN: A GUI for Claude Code Settings

https://randynamic.org/ccmate
1•djyde•4m ago•0 comments

Arduino acquired by Qualcomm; releases new Arduino UNO Q running Linux

https://www.xda-developers.com/arduino-acquired-qualcomm-uno-q-launched/
1•raffael_de•4m ago•0 comments

Dear America – Please Release My Country – Pacifica

https://indignified.substack.com/p/dear-america-please-release-my-country
2•ZguideZ•7m ago•0 comments

Ask HN: Is Alphabet High? Can't Turn Off Auto-Dubbing on YouTube Videos? What?

1•OhMeadhbh•7m ago•1 comments

Violin-style MIDI controller using force-sensitive keys and resistive strip

https://bradylin.com/projects/stradex/
1•sohkamyung•10m ago•0 comments

The Treadmill

https://treadmill.phisch.de/
1•phischde•12m ago•0 comments

Run local LLMs with Ruby llama.cpp bindings

https://www.docuseal.com/blog/run-open-source-llms-locally-with-ruby
1•babanooey21•13m ago•1 comments

Microplastics and Nanoplastics in Health: Toxicity, Exposures, and Mitigation

https://www.mdpi.com/2075-1729/15/9/1449
1•PaulHoule•13m ago•1 comments

Otary now includes 17 image binarization methods

https://alexandrepoupeau.com/otary/api/image/transformers/thresholding/
1•poupeaua•14m ago•1 comments

Open source payment orchestration platform

https://korben.info/hyperswitch-plateforme-paiement-ingenieur.html
1•manojr13•14m ago•0 comments

Stargate is nowhere near enough to make OpenAI's AMD and Nvidia tie-ups work

https://www.theregister.com/2025/10/06/stargate_openai_amd/
2•rntn•14m ago•0 comments

One Pennsylvania Town's Quest to Find a Loving Home for Its Atom Smasher

https://www.wsj.com/lifestyle/westinghouse-atom-smasher-55cadcd3
1•edward•15m ago•0 comments

The ruin of Gaza: how Israel's two-year assault has devastated the territory

https://www.theguardian.com/world/ng-interactive/2025/oct/07/the-ruin-of-gaza-how-israel-two-year...
3•hebelehubele•15m ago•0 comments

I've Been at NPR for 25 Years. Here’s How We Lost America’s Trust.

https://www.thefp.com/p/npr-editor-how-npr-lost-americas-trust
2•rsyring•16m ago•1 comments

The Beauty of Smaller Communities

https://anubiarts.bearblog.dev/beauty-smaller-communities-18/
1•speckx•18m ago•0 comments

Alias and References as Localized Macros

https://gustedt.wordpress.com/2025/10/07/alias-and-references-as-localized-macros/
1•ingve•18m ago•0 comments

Gifted children are special needs children

https://mleverything.substack.com/p/gifted-children-are-special-needs
6•bko•21m ago•1 comments

Virlo – Largest Data Aggregator of Short-Form Video

https://virlo.ai/
2•bolcoto•25m ago•0 comments

Eating capitalism: How our food got hijacked by profits

https://hi-im-ada.beehiiv.com/p/7-eating-capitalism
10•heyimada•26m ago•1 comments

Unitree G1 Basic for Sale on Walmart.com

https://www.walmart.com/blocked?url=L2lwL1VuaXRyZWUtRzEtQmFzaWMvMTcyMjU3MTA4NjM=&uuid=1a680e8c-a3...
1•ozten•26m ago•0 comments

Choosing Between PostgreSQL and SQLite

https://kerkour.com/choosing-between-postgresl-and-sqlite
2•unsolved73•28m ago•0 comments

Show HN: Blueprintor for Hardware Engineering

https://www.zima.run/
2•fco_tero•31m ago•0 comments

Coming: A Repairable Printer with Refillable Ink Cartridges

https://fossforce.com/2025/10/coming-a-repairable-printer-with-refillable-ink-cartridges/
3•dxs•31m ago•1 comments

AppMigrationKit

https://developer.apple.com/documentation/appmigrationkit
2•gok•32m ago•0 comments

The worlds of young children and their encounters with school science

https://link.springer.com/article/10.1007/s11422-024-10244-0
3•tokai•33m ago•0 comments

OfficeX – An open-source, peer-to-peer workspace you can embed in any app

2•OfficeXApp•34m ago•0 comments

The Dragon Hatchling

https://arxiv.org/abs/2509.26507
1•dboreham•34m ago•0 comments

Apple Mocks Windows PCs in Humorous New 'Blue Screen of Death' Ad

https://www.macrumors.com/2025/10/07/apple-blue-screen-of-death-ad/
3•ksec•35m ago•1 comments