frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Optimizing Factorio startup performance when running on a hard disk

https://aa55.dev/2025/06/08/Improve-factorio-startup-speed.html
3•ProcNetWireless•3h ago

Comments

lucb1e•3h ago
the stated solution is to "load the file contents into RAM at system bootup"

Wait, so you want games on your hard drive because SSD space is too expensive (~55€/TB), so then you permanently occupy some RAM instead (at ~6500€/TB)?

Have you tried doing a linear read from disk instead, like to use zstd for good compression and fast decompression of the Factorio data folder and then make a Factorio shortcut that does like:

    $ cat run-factorio.sh
    mkdir /dev/shm/factorio
    cd /dev/shm/factorio
    tar xf ~/games/factorio.tar.zstd
    /dev/shm/factorio/bin/x64/factorio
    # the above line will block so long as the game runs
    tar c . | zstd -T0 -19 > ~/games/factorio.tar.zstd
    echo Finished saving Factorio data back to disk
such that all reads on startup (and beyond) will be from RAM but only while you are actually running the game?
ProcNetWireless•2h ago
> Wait, so you want games on your hard drive because SSD space is too expensive (~55€/TB),

I have 3 SSDs and a hard disk. The SSDs are mostly full and I've run out of SATA ports.

>so then you permanently occupy some RAM instead (at ~6500€/TB)?

Its not permanent, the files would be stored in cache which would be cleared if its needed elsewhere.

lucb1e•27m ago
> the files would be stored in cache which would be cleared if its needed elsewhere.

Right, but then it also loses the benefit so afaict the intention is for it to be there when you start the game

throwaway888abc•3h ago
>Before the optimization, the game took 113 seconds to startup1. After the optimization, the game only took 30 seconds. The script takes 230 seconds to run, much higher than the time taken for the game to load probably because the game only loads parts of the files whereas the script always loads the entire file contents into RAM.

Basically, if you want just play:

Time to play - Your script - 230s + 30s = 260s total

Time to play - Filesystem - 113s = 113s total

For permanent speedup, lets make Factorio fly with ZFS and ARC/L2ARC:

https://www.45drives.com/community/articles/zfs-caching/

ProcNetWireless•2h ago
I typically power on my PC, attend to other tasks, and by the time I return, the system would have completed the boot process. While the script may take 260s, it runs in the background.

The Playbook Used to 'Prove' Vaccines Cause Autism

https://www.nytimes.com/interactive/2025/08/19/opinion/vaccines-autism-evidence.html
1•voxadam•4m ago•0 comments

Ask HN: Help with my project ( should I continue) ?

1•robomiri•6m ago•0 comments

Show HN: Configurable Open Source Audio Spectrum Analyzer

https://github.com/sylwekkominek/SpectrumAnalyzer
1•sylwekkominek•7m ago•0 comments

RetroZilla

https://rn10950.github.io/RetroZillaWeb/
2•theandrewbailey•7m ago•0 comments

NVIDIA outlines plans for using light for communication between AI GPUs

https://www.tomshardware.com/networking/nvidia-outlines-plans-for-using-light-for-communication-b...
1•tanelpoder•10m ago•0 comments

Questing for Transcendence

https://scholars-stage.org/questing-for-transcendence/
1•venkii•14m ago•1 comments

Lack of operational excellence threatens us, not AI

https://dzidas.com/ml/2025/08/24/operational-excellence-vs-ai/
1•Dzidas•15m ago•0 comments

Ask HN: Best Marketplaces for Used Servers?

1•bloudermilk•16m ago•0 comments

Stand-Up – Why are we using a public meeting for performance management?

https://medium.com/@drig/stand-up-why-are-we-using-a-public-meeting-for-performance-management-87...
1•mooreds•17m ago•0 comments

Meta partners with Midjourney to license AI tech for future products

https://www.reuters.com/business/meta-partners-with-midjourney-license-ai-tech-future-products-20...
1•01-_-•17m ago•0 comments

Half my work is adding a cache

https://blog.waleedkhan.name/half-my-work-is-adding-a-cache/
1•LasEspuelas•18m ago•0 comments

In Defense of the Amyloid Hypothesis

https://www.astralcodexten.com/p/in-defense-of-the-amyloid-hypothesis
1•venkii•20m ago•0 comments

I ran out of storage, so I made this tool to convert Live Photos to still images

https://apps.apple.com/us/app/liveconvert-save-storage/id6747953805
3•miln•21m ago•2 comments

The Chevy Corvette ZR1X Is $120K Cheaper Than Mustang GTD

https://www.thedrive.com/news/the-chevy-corvette-zr1x-is-120k-cheaper-than-mustang-gtd
1•PaulHoule•23m ago•0 comments

Reliable

https://www.catherinejue.com/reliable
1•shikhar•24m ago•0 comments

Underdog bias rules everything around me

https://www.lesswrong.com/posts/f3zeukxj3Kf5byzHi/underdog-bias-rules-everything-around-me
1•signalbright•25m ago•0 comments

Apple Watch's blood oxygen restoration may get killed by ITC

https://appleinsider.com/articles/25/08/23/apple-watchs-blood-oxygen-restoration-may-get-killed-b...
1•alwillis•30m ago•0 comments

My favorite developer productivity research method that nobody uses

https://surfingcomplexity.blog/2025/08/24/my-favorite-developer-productivity-research-method-that...
1•azhenley•32m ago•0 comments

<script type="text/llms.txt">, a proposal for inline LLM instructions in HTML

https://vercel.com/blog/a-proposal-for-inline-llm-instructions-in-html
1•maxloh•37m ago•0 comments

A Brilliant and Nearby One-Off Fast Radio Burst Localized to 13pc Precision

https://iopscience.iop.org/article/10.3847/2041-8213/adf62f
2•gnabgib•39m ago•0 comments

In 512(f), the "F" Stands for "Futility"–Shaffer vs. Kavarnos

https://blog.ericgoldman.org/archives/2025/08/in-512f-the-f-stands-for-futility-shaffer-v-kavarno...
1•hn_acker•40m ago•0 comments

Trump mobilizing up to 1,700 National Guard troops in 19 states

https://www.independent.co.uk/news/world/americas/us-politics/trump-national-guard-military-state...
2•Tadpole9181•40m ago•2 comments

Internet Access Providers Aren't Bound by DMCA Unmasking Subpoenas–In Re Cox

https://blog.ericgoldman.org/archives/2025/08/internet-access-providers-arent-bound-by-dmca-unmas...
2•hn_acker•42m ago•0 comments

Ask HN: Does using public transportation make you more creative than driving?

2•amichail•42m ago•2 comments

Fast or slow metabolisms are not a "lie"

https://greyenlightenment.com/2025/07/12/fast-or-slow-metabolisms-are-not-a-lie-its-time-to-put-t...
4•paulpauper•42m ago•0 comments

There is not one integrated self

https://twitter.com/tom_shapland/status/1959693044896485630
1•tmshapland•43m ago•1 comments

Mark Gatiss, the boy that Dr Who books made

https://thebeemagazine.com/mark-gatiss-the-boy-that-dr-who-books-made/
2•mellosouls•44m ago•0 comments

There Is No Trolley Problem

https://www.the-reframe.com/there-is-no-trolley-problem/
1•hn_acker•45m ago•1 comments

The problem of scheduling life like a spreadsheet

1•mihailyonchev•45m ago•0 comments

Building things of worth in a shallow world

https://ryanglover.net/blog/building-things-of-worth-in-a-shallow-world
1•rglover•47m ago•0 comments