ref: 20e31bc8a9ae12ad832ea079ffb9f2c7121966ad
parent: 8e2a344a89b52e664f8cd8abf9dfa3848514129d
author: qwx <qwx@sciops.net>
date: Wed Jul 6 01:52:28 EDT 2022
vec, zalloc: dramatically raise increment size makes more sense wrt. actual trials
--- a/asif.h
+++ b/asif.h
@@ -17,9 +17,6 @@
void vinsert(VArray*, char*);
VArray* valloc(ulong, int);
-enum{
- Shardsz = 128,
-};
typedef struct VShard VShard;
typedef struct Vector Vector;
struct VShard{
--- a/vec.c
+++ b/vec.c
@@ -2,6 +2,10 @@
#include <libc.h>
#include "asif.h"
+enum{
+ Shardsz = 2048,
+};
+
static void
shardlink(Vector *v, VShard *s)
{
--- a/zalloc.c
+++ b/zalloc.c
@@ -28,7 +28,7 @@
};
enum{
- Ninc = 128,
+ Ninc = 2048,
};
static Ztail *