Skip to content

Instantly share code, notes, and snippets.

View 0dm's full-sized avatar
🐈‍⬛

Aaron 0dm

🐈‍⬛
  • AMD
  • Toronto, ON
  • 17:25 (UTC -04:00)
View GitHub Profile
@0dm
0dm / test_pickles.py
Last active June 6, 2023 04:06
python pickling test
import numpy as np
import pickle
import dill
import _pickle
import cloudpickle
import timeit
arr = np.random.default_rng(1991).random((100, 100, 100))
for package in ["dill", "pickle", "_pickle", "cloudpickle"]:
@0dm
0dm / example.cpp
Last active May 5, 2023 02:00
GCC Optimization Example
#include <chrono>
#include <iostream>
int test() {
long long number = 0;
for (long long i = 0; i != 2000000000; ++i) {
number += 3;
}
std::cout << number << "\n";
return 3;