# HG changeset patch # User Kim Alvefur # Date 1470665266 -7200 # Node ID 1d3f9da189b53b25b449d6ee1146a68757632f38 # Parent e69df80933875aeb574a9bb5f2aee39734c0b945 net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot of efficiency according to a recent study) diff -r e69df8093387 -r 1d3f9da189b5 net/http/server.lua --- a/net/http/server.lua Sun Aug 07 20:51:34 2016 +0200 +++ b/net/http/server.lua Mon Aug 08 16:07:46 2016 +0200 @@ -13,7 +13,7 @@ local tostring = tostring; local cache = require "util.cache"; local codes = require "net.http.codes"; -local blocksize = require "socket".BLOCKSIZE or 2048; +local blocksize = 2^16; local _M = {};