mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 01:05:07 +02:00
c
This commit is contained in:
@@ -145,7 +145,7 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
#section[
|
#section[
|
||||||
= Function *out*lining
|
= Function outlining
|
||||||
A related optimization is "outlining". It's the opposite to inlining.
|
A related optimization is "outlining". It's the opposite to inlining.
|
||||||
It moves duplicate code into a function, to reduce code size, and sometimes increase performance (because of instruction caching)
|
It moves duplicate code into a function, to reduce code size, and sometimes increase performance (because of instruction caching)
|
||||||
|
|
||||||
|
@@ -99,7 +99,7 @@
|
|||||||
content
|
content
|
||||||
}
|
}
|
||||||
|
|
||||||
#if not is-nano {
|
#context if (not is-nano) and is-html() {
|
||||||
html-script("
|
html-script("
|
||||||
function gotoVariant(variant) {
|
function gotoVariant(variant) {
|
||||||
window.location.href = window.location.href.replace(/\.\w+.html/g, variant);
|
window.location.href = window.location.href.replace(/\.\w+.html/g, variant);
|
||||||
|
Reference in New Issue
Block a user