This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//gcc eventfd.c -o eventfd -lpthread | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/time.h> | |
#include <stdint.h> | |
#include <pthread.h> | |
#include <sys/eventfd.h> | |
#include <sys/epoll.h> | |
int efd = -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse | |
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse | |
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted | |
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted | |
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted | |
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted | |
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted | |
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted | |
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted | |
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import numpy | |
import itertools | |
import operator | |
from timeit import Timer | |
def test_trad(): | |
x = range(10000000) | |
y = range(10000000) | |
z = [] |