I hereby claim:
- I am dotgc on github.
- I am dotgc (https://keybase.io/dotgc) on keybase.
- I have a public key ASD0u7Z3cPcN62Kw8Anv-rIGzl3IVn94G24d4WS7mMc1vgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Extract Archives ### | |
function extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjvf $1 ;; | |
*.tar.gz) tar xzvf $1 ;; | |
*.bz2) bzip2 -d $1 ;; | |
*.rar) unrar2dir $1 ;; | |
*.gz) gunzip $1 ;; | |
*.tar) tar xf $1 ;; |
public abstract class BaseUploader { | |
protected String mBucketUrl; | |
protected S3Data mData; | |
protected ResponseCallback mCallback; | |
public BaseUploader(String bucketUrl, S3Data data, ResponseCallback cb) { | |
mBucketUrl = bucketUrl; | |
mData = data; | |
mCallback = cb; | |
} |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD* 150,000 ns 0.15 ms |