Skip to content

u/Duncaen

In this archive from Aug 2017 to Sep 2021

1
posts
11
comments
1
media
18
score

Top posts

Top comments

I do use ccache, I just finished a test build (firefox-92.0) with an empty ccache, 16 threads on Ryzen 3700X with nvme storage and 64G ram to verify my claims:

23:46.64 We know it took a while, but your build finally finished successfully!
23:46.64 If you are building Firefox often, SCCache can save you a lot of time. You can learn more here: https://firefox-source-docs.mozilla.org/setup/configuring_build_options.html#sccache
 Config object not found by mach.
Configure complete!
Be sure to run |mach build| to pick up any changes
To view resource usage of the build, run |mach resource-usage|.
To take your build for a test drive, run: |mach run|
For more information on what to do now, see https://firefox-source-docs.mozilla.org/setup/contributing_code.html

So 24 minutes for the whole ./mach build itself.

~$ CCACHE_DIR=/home/duncan/void-packages/hostdir/ccache ccache -s
cache directory                     /home/duncan/void-packages/hostdir/ccache
primary config                      /home/duncan/void-packages/hostdir/ccache/ccache.conf
secondary config (readonly)         /etc/ccache.conf
stats updated                       Sun Sep 12 16:24:39 2021
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                          2273
cache hit rate                      0.00 %
called for link                      110
called for preprocessing              52
compile failed                        10
preprocessor error                    38
bad compiler arguments                 1
autoconf compile/link                 77
unsupported compiler option          152
no input file                         22
cleanups performed                     0
files in cache                      4517
cache size                           1.7 GB
max cache size                       5.0 GB

And the time output for the whole finished package (time ./xbps-src pkg firefox), including extracting sources, splitting out debug symbols and installing all build dependencies (in void we build all packages in clean chroots and have a debug repo with symbols for each package):

   26m02.68s real   302m19.80s user    12m01.55s system

I think most time by now is spend building rust crates, I do not have sccache setup to cache them, but that is something that should further improve build times.

4 points

Most tools use . as default selector, which is the current mail, See mmsg(7) (https://man.voidlinux.eu/mmsg.7).

https://man.voidlinux.eu/mblaze.7#CONCEPTS describes how the current mail is stored.

You would start setting up a sequence of mail with something like mlist ~/mail | mthread | msort -d | mseq -S, then you can run mless(1), naigate through mails (:n, :p) and exit mless(1). The current mail in mless is now the cur mail for the sequence, you can now run mrep(1), mfwd(1) etc. to reply and forwards, or use mshow -x . foo.patch to extract a patch from the mail, or mshow -O . foo.patch | patch to apply it. There is way more to it, you can do things like mflag -T .= to flag the whole thread of the current mail as trashed.

Most of the time I use mblaze with a script that setups sequences based on the argument supplied, like openbsd to select all new mails from the openbsd mailing list or without an argument it setups a sequence with unread mails that are addressed directly towards me.

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.