Skip to content

Instantly share code, notes, and snippets.

View iwinux's full-sized avatar
👽

Limbo Peng iwinux

👽
View GitHub Profile
@iwinux
iwinux / a-warning.md
Created March 1, 2016 04:18 — forked from spion/a-warning.md
C++ versus V8 versus luajit versus C benchmark - (hash) tables

Warning

This benchmark has been misleading for a while. It was originally made to demonstrate how JIT compilers can do all sorts of crazy stuff to your code - especially LuaJIT - and was meant to be a starting point of discussion about what exactly LuaJIT does and how.

As a result, its not indicative of what its performance may be on more realistic data. Differences can be expected because

  1. the text will not consist of hard-coded constants
@iwinux
iwinux / backend.conf
Last active October 13, 2015 04:12 — forked from caquino/backend.conf
invalidate Nginx cache via ngx-lua
server {
listen 80;
server_name backend;
root /usr/share/nginx/www;
index index.html index.html;
location / {
header_filter_by_lua '
@iwinux
iwinux / mylist.go
Created November 2, 2012 13:59 — forked from JeffreyZhao/List.cs
List.removeMultiple implemented in Golang
package main
import ("fmt")
type (
T interface{}
MyList []T
)
func (listp *MyList) removeMultiple(toRemove MyList) {