Rewrite IPv4 Turf War backend

It can now handle 240k SQLite write QPS at 3ms 99 percentile latency.
We're still working out the kinks since it's brand new. But we've got
this running in production already!
This commit is contained in:
Justine Tunney 2022-10-03 08:17:37 -07:00
parent ccbae7799e
commit 91e167caaf
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 1021 additions and 6 deletions

View file

@ -24,6 +24,10 @@
#include "third_party/nsync/wait_s.internal.h"
#include "third_party/nsync/waiter.h"
// once we're paying the cost of nsync we might as well get the benefit
// of a better pthread_once(), since no other component pulls it in now
STATIC_YOINK("nsync_run_once");
asm(".ident\t\"\\n\\n\
*NSYNC (Apache 2.0)\\n\
Copyright 2016 Google, Inc.\\n\