3

Git 2.37.0 對巨大 Monorepo 的加速功能 FSMonitor

 1 year ago
source link: https://blog.gslin.org/archives/2022/07/04/10778/git-2-37-0-%e5%b0%8d%e5%b7%a8%e5%a4%a7-monorepo-%e7%9a%84%e5%8a%a0%e9%80%9f%e5%8a%9f%e8%83%bd-fsmonitor/
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 2.37.0 對巨大 Monorepo 的加速功能 FSMonitor

這邊用 GitHub 寫的說明好了:「Improve Git monorepo performance with a file system monitor」。

從 2.37.0 開始,Windows 與 Mac 版的使用者可以透過 FSMonitor 的功能記錄檔案系統的變化,大幅減少需要 scan 整個 repository 的時間,可以看到啟用後對於像是 chromium 這種大型專案的 status 時間就大幅下降了:

XnM7JpH.png

不過 Linux 還沒支援,目前我的環境都是 Linux,就沒辦法用了...

Related

GOV.UK 拔掉網頁上的 jQuery

英國政府的網站拔掉 jQuery 了:「GOV.UK drops jQuery from their front end.」,Hacker News 上的討論也可以看一下:「Gov.uk drops jQuery from their front end (web.dev)」。 當年會選擇用 jQuery 大概有幾個原因,第一個是當年 (很舊的 browser 版本) 對 DOM 的操作非常的混亂,像是: 有 appendChild() (IE5+) 但沒有 prependChild()。後來才有 append() 與 prepend() (兩個在 IE 都沒支援,要到 Edge 17+)。 有 insertBefore() (IE6+) 但沒有 insertAfter()。後來是透過 insertAdjacentElement() (IE5+ but only for…

May 20, 2022

In "Browser"

Microsoft 與 GitHub 合作,將會把 GVFS 移植到 Linux 與 Mac 上

Microsoft 與 GitHub 合作將本來只有在 Windows 上可以用的 GVFS 移植到 Linux 與 Mac 上:「Microsoft and GitHub team up to take Git virtual file system to macOS, Linux」。 GVFS 是解決微軟內部自己在用 Git 的痛處,因為微軟的 repository 都... 有... 點... 肥... (畢竟有不少產品發展了很久)。 目前 Git 的操作是卡在 I/O 與 memory cache 的限制上: Also, Git wasn't designed for a codebase…

November 18, 2017

In "Computer"

用 GitHub Actions 做的監控服務 Upptime

是在 Twitter 上看到這個: Introducing the new phpBB Status Site https://t.co/V20jmQk4Px— phpBB (@phpbb) May 8, 2022 然後翻到 Upptime 這個 open source monitoring 工具,直接是用 GitHub Actions 提供的 schedule (cron job) 每五分鐘跑一次。這邊要注意的是,如果是 public repository 的話不受限制,如果是 private repository 的話會有機會把 quota 吃完: Billing note: Upptime uses thousands of build minutes every month (approximately 3,000 minutes…

May 9, 2022

In "Cloud"

a611ee8db44c8d03a20edf0bf5a71d80?s=49&d=identicon&r=gAuthor Gea-Suan LinPosted on July 4, 2022Categories Computer, Murmuring, Programming, SoftwareTags filesystem, fsmonitor, git, mac, mono, monorepo, performance, repository, speed, windows

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Notify me of follow-up comments by email.

Notify me of new posts by email.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)

Post navigation


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK