Skip to content

Instantly share code, notes, and snippets.

View dio's full-sized avatar
💥

Dhi Aurrahman dio

💥
  • Bandung, Indonesia
View GitHub Profile
const {isArray} = Array;
const sync = async values => {
for (let {length} = values, i = 0; i < length; i++) {
const value = await values[i];
values[i] = isArray(value) ? await sync(value) : value;
}
return values;
};

In a terminal start a server.

$ python -m SimpleHTTPServer 8000

In another terminal set up the cgroups freezer.

@d4l3k
d4l3k / about.md
Last active February 16, 2023 10:56
Golang Performance Tricks

This is a gist with a set of helpful performance tricks and best practices that I've found on the internet.