Compare commits

..

3 commits

16 changed files with 118 additions and 12 deletions

View file

@ -0,0 +1,51 @@
- [ ] Script
- [ ] Brainstorm Topics
- [ ] Research Topic & Take Notes
- [ ] Topic Sections
- [ ] First Draft & More Research
- [ ] Get Reviews, Proof Read & Research
- [ ] Final Draft
##
- [ ] Video
- [ ] Hook
- [ ] Body
- [ ] Transitions
- [ ] Recording -- Code Snippet Screenshots
- [ ] Recording -- Screenshots
- [ ] Recording -- Videos
- [ ] Outro
- [ ] Record Audio
- [ ] Extract Audio Segments
- [ ] Edit Video to Mix in Audio
- [ ] Background Music
- [ ] Render Full Video
- [ ] Render Short Video
##
- [ ] Metadata
- [ ] Title
- [ ] Description
- [ ] Tags
- [ ] Pinned Comment
- [ ] Code Snippets
- [ ] Godbolt Permalinks
- [ ] Social Hooks' Message(s)
- [ ] References
##
- [ ] Social Hooks
- [ ] Youtube
- [ ] Youtube Short
- [ ] Instagram
- [ ] Instagram Reel
- [ ] Tiktok
- [ ] Discord
- [ ] Telegram
- [ ] Threads
- [ ] Matrix
- [ ] BlueSky
- [ ] Twitter/X
- [ ] Reddit
- [ ] Pinterest

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 KiB

View file

@ -19,30 +19,31 @@ or Mold Linker
As you can see, mold uses all available cores throughout its execution and finishes quickly. In contrast, lld fails to utilize available cores most of the time.
On a side-note, this project could you financial support...
The next step is to replace Make with
## Ninja
no not this guy, but the build tool.
CCache
## CCache
Upgrade Compilers
## Upgrade Compilers
Next item is... disabling your
Anti Virus
## Anti Virus / Windows Defender
Ensure Parallel Build
# Ensure Parallel Build
-- Code Changes -- (from least to most intrusive)
Minimize Includes
# Modules
Forward Declaration
Precompiled Headers
# Minimize Includes
Unity Builds
# Forward Declaration
# Precompiled Headers
# Unity Builds
Modules
-- Shut Up and Take My Money --
Upgrade Hardware
@ -50,7 +51,7 @@ Upgrade Hardware
Build Over Network
# Sources
# References
## Repositories
Mold: https://github.com/rui314/mold

View file

@ -0,0 +1,13 @@
#pragma once
// Assume this file includes many other files...
// Which accumulate to 50'000 lines of source code!
class Big
{
public:
Big(int foo)
{
}
};

View file

@ -0,0 +1,10 @@
#include "./forward_decl.hpp"
// This inclusion will not leak to other header files...
#include "./big.hpp"
IncludedManyTimes::IncludedManyTimes():
m_large_dependency(new Big { 1 })
{
}

View file

@ -0,0 +1,16 @@
#pragma once
// This file will be included MANY times...
// Option A: forward declare on top of the file
class Big;
class IncludedManyTimes
{
public:
IncludedManyTimes();
private:
// Option B: forward declare when delcaring the variable
/* class */ Big *m_large_dependency;
};

View file

@ -0,0 +1,8 @@
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
#include "./right_curly_brace.hpp"

View file

@ -0,0 +1,6 @@
#include <iostream>
int main()
{
return 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

View file

@ -6,7 +6,7 @@ _Scoped Declaration_: https://godbolt.org/z/oT5TbP6vx
_Anonymous Declaration_: https://godbolt.org/z/s97n5jETs
_Scoped vs Unscoped_: https://godbolt.org/z/h65cjMEhb
_Explicit Underlying Type_: https://godbolt.org/z/ehY7Gns6E
_Default Case_: https://godbolt.org/z/a6KWE8b4c
_No Default Case_: https://godbolt.org/z/a6KWE8b4c
_Utilize Zero_: https://godbolt.org/z/fvE6z9jMf
_Utilize Counting_: https://godbolt.org/z/5EEhYrcr9
_Using Enum Syntax_: https://godbolt.org/z/shaE6Yc64

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 183 KiB