I hereby claim:
- I am miguelff on github.
- I am miguelff (https://keybase.io/miguelff) on keybase.
- I have a public key ASBI6T5HfJcq531pX597-0OiXujhozFobuX58IqS8qHR8go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
# use the latest ubuntu environment (18.04) available on travis | |
dist: xenial | |
language: go | |
# Force-enable Go modules. Also force go to use the code in vendor/ | |
# These will both be unnecessary when Go 1.13 lands. | |
env: | |
- GO111MODULE=on | |
- GOFLAGS='-mod vendor' |
require "set" | |
@mantras = Set.new | |
trap "SIGINT" do | |
puts "YOU HAVEN'T FINISHED YET!" | |
end | |
def learn(&instructions) | |
instance_eval &instructions |
Assuming you llvm installed (comes as standard on Mac OS Mavrick xtools)
Create a helloworld.c file:
#include<stdio.h>
int main()
{
int x=3;
🦁 |
## Platform-data tooling | |
This document describes the set of tools and processes used by @github/platform-data to satisfy their operational needs, and accomplish their [goals](https://github.com/github/platform-data#our-goals-and-values) in an effective and efficient way. | |
#### Operational needs (goals alignment) | |
What we do defines our needs. Our main goal is to make sure GitHub is resilient and keeps being fast even if there is "a million of them", to do it, we carry on the following activities: | |
* **Modelling**: Given a new feature, design and implement data models and access patterns that are both fast and scalable. | |
* **Reviewing:** Given a proposed PR, advise and provide alternatives on maintainability or performance improvements. |
belongs_to
association does not automatically save the object. It does not save the associated object either.has_one
association, that object is automatically saved (in order to update its foreign key).has_one
association) is unsaved (that is, new_record?
returns true) then the child objects are not saved. They will automatically when the parent object is saved.user system total real | |
Iterative (10) 0.000000 0.000000 0.000000 ( 0.000006) | |
Formula (10) 0.010000 0.000000 0.010000 ( 0.010514) | |
Recursive (10) 0.000000 0.000000 0.000000 ( 0.000004) | |
Iterative (20) 0.000000 0.000000 0.000000 ( 0.000004) | |
Formula (20) 0.040000 0.000000 0.040000 ( 0.043513) | |
Recursive (20) 0.000000 0.000000 0.000000 ( 0.000010) | |
Iterative (100) 0.010000 0.000000 0.010000 ( 0.000048) | |
Formula (100) 1.130000 0.010000 1.140000 ( 1.141393) | |
Recursive (100) 0.000000 0.000000 0.000000 ( 0.000034) |