Skip to content

u/Duncaen

In this archive from Aug 2017 to Sep 2021

1
posts
11
comments
1
media
18
score

They are supposedly working on making rustc more parallel, but I don't think its a high priority. At the moment you can only parallelize separate crates. I haven't tried sccache yet, but this should speed up subsequent builds.

1 points

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

You are doing something wrong, takes around 20 minutes with a Ryzen 3700X.

Edit: since I'm getting downvoted, firefox compilation is not getting faster, they add more and more rust/cargo crates over the time and this is making the builds slower. The only reason I could see this taking an hour on a 16 core CPU is if you are actually not building with 16threads or you use a slow HDD for storage.

Source: I've been updating firefox on voidlinux, therefor building firefox releases for for different architectures and libc implementations to test them: https://github.com/void-linux/void-packages/commits/master?branch=master&path[]=srcpkgs&path[]=firefox&path[]=template

1 points

Not only r/unixporn users get intimidated by ponies and down vote it, but the moderators too? Instead of removing it you could have asked me to add another screenshot, I'm not going to post it again, have fun looking at more generic dark themes.

Thanks, have a nice day too!

1 points

All I did is changing 3 colors in sts and dwms config.h file, they are not part of my dotfiles. (Thats what r/unixporn is, rigth?)

Relevant part form dwms config.h:

static const char normbordercolor[] = "#f7b7d3";
static const char normbgcolor[]     = "#92278f";
static const char normfgcolor[]     = "#ffffff";
static const char selbordercolor[]  = "#cf128c";
static const char selbgcolor[]      = "#f067a6";
static const char selfgcolor[]      = "#ffffff";
static const char *colors[][2]      = {
        /*               fg         bg         border   */
        [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
        [SchemeSel] =  { selfgcolor, selbgcolor, selbordercolor },
};

Relevant part form sts config.h:

static const char *colorname[] = {
        ...
        [255] = 0,
        "#92278f",      /* 256: background */
};

unsigned int defaultfg = 7;
unsigned int defaultbg = 256;
static unsigned int defaultcs = 7;
static unsigned int defaultrcs = 1;

My dotfiles are cool nevertheless.

1 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

End of this list.

Back to top

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.