A LTO unit is the subset of the linkage unit that is linked together using link-time optimization.
LTO::add(...) {
}| using System; | |
| using System.Diagnostics; | |
| using System.Runtime; | |
| /* | |
| This little program is a stress test for GC performance we care about in Unity. | |
| It will basically create a heap of managed memory with references between allocations | |
| (just some linked list), and then randomly replace some memory every loop iteration - to | |
| simulate a game which dirties some memory every frame. This allocation pattern may not be |
| apt install flex bison | |
| git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1 | |
| cd WSL2-Linux-Kernel/tools/perf | |
| make -j8 | |
| sudo cp perf /usr/local/bin |
| msys2 vs msys vs msysgit | |
| MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin | |
| Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows. | |
| MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only | |
| need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation. | |
| MinGW provides headers and libraries so that GCC (a compiler suite, | |
| not just a "unix/linux compiler") can be built and used against the Windows C runtime. |
| --- | |
| Language: Cpp | |
| AccessModifierOffset: -4 | |
| AlignAfterOpenBracket: DontAlign | |
| AlignConsecutiveAssignments: false | |
| AlignConsecutiveDeclarations: false | |
| AlignEscapedNewlines: Left | |
| AlignOperands: true | |
| AlignTrailingComments: true | |
| AllowAllParametersOfDeclarationOnNextLine: true |
| #!/bin/bash | |
| # | |
| # /etc/kernel/postinst.d script to sign akmods kmods after kernel upgrade | |
| # | |
| # Author: Michael Goodwin Date: 2016-09-21 | |
| # 1. Copy this script to /etc/kernel/postinst.d/ and `chmod +x` it | |
| # | |
| # 2. Create signing keys (store these somewhere useful and safe): | |
| # $ mkdir -p /etc/pki/tls/private/mok |
| #!/usr/bin/env python | |
| #coding:utf-8 | |
| # Author: Beining --<cnbeining#gmail.com> | |
| # Author: TYPCN --<typcncom#gmail.com> ( Performance improve and fix ) | |
| # Purpose: A simple script to get lots of viewers of Bilibili Live | |
| # Created: 08/11/2015 | |
| # Error report: http://www.cnbeining.com/?p=952 | |
| # https://github.com/cnbeining somewhere within my gists | |
| import sys |
| #include <type_traits> | |
| namespace detail { | |
| // No need to give up constexpr for std::forward | |
| template <class T> | |
| constexpr T && forward(typename std::remove_reference<T>::type & t) noexcept { | |
| return static_cast<T &&>(t); | |
| } |