

Git Monorepo Improved Performance
source link: https://ylan.segal-family.com/blog/2022/10/20/git-monorepo-improved-performance/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Git Monorepo Improved Performance
Oct 20, 2022 • Ylan Segal • git
git
recently shipped some performance improvements when working with large repositories, as announced on the GitHub blog.
I tested in a large repository. With default configuration:
$ time git status
On branch master
Your branch is behind 'origin/master' by 686 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
git status 0.40s user 8.55s system 429% cpu 2.082 total
We then configure fsmonitor
and untrackedcache
:
$ git config core.fsmonitor true
$ git config core.untrackedcache true
And run twice, to warm up the cache:
$ time git status
On branch master
Your branch is behind 'origin/master' by 686 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
git status 0.38s user 1.43s system 159% cpu 1.141 total
$ time git status
On branch master
Your branch is behind 'origin/master' by 686 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
git status 0.13s user 0.03s system 92% cpu 0.178 total
The improvement is quite significant. The end performance is under 200 ms, generally considered to be perceived as instantaneous by users. I’m thrilled!
Find me on Twitter at @ylansegal
Recommend
-
67
In every release of Microsoft Edge, we tune the Chakra JavaScript engine to provide better startup and execution performance, with a leaner memory footprint, and with improved responsiveness on real-world workloads....
-
86
Continuing Firefox Quantum’s investment in a high-performance engine, theFirefox 61 release will boost responsiveness of modern interfaces with an optimization that we call Retained Display Lists . Similar to Qu...
-
22
Display list building is the process in which we collect the set of high-level items to display on screen (borders, backgrounds, text and much more), and then sort the list, ...
-
23
Asif S. 4 months ago 12 ...
-
11
MySQL 8.0 released with new features and improved performance The MySQL development team has announced the General Availability of the MySQL 8.0.0 Open Source database....
-
2
March 16, 2021 Engineering Improving large monorepo performance on GitHub
-
8
Single File Monorepo Config, Custom Workspace Presets, Improved Tailwind Support, and more in Nx 13.4!Nx logoNx is a smart, extensible build framework to help you architect, test,...
-
5
Improve Git monorepo performance with a file system monitorMonorepo performance can suffer due to the sheer number of files in your working directory. Git’s new builtin file system monitor mak...
-
6
Git 2.37.0 對巨大 Monorepo 的加速功能 FSMonitor 這邊用 GitHub 寫的說明好了:「
-
3
Monorepos have grown in popularity in recent years. For many of us, they are a part of our daily Git workflows....
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK