diff options
| author | eunhhu <[email protected]> | 2026-10-18 23:54:06 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-10-18 23:54:06 +0100 |
| commit | d7caf4dfb1947d8f804e3d8ae7ef066c6e3b8fb7 (patch) | |
| tree | 6c5b8bc47b5ce60cb9021377c1d2dc3c3469972e /serve/message-json.h | |
| parent | ff2e0823e97d10477341192d72f5d9e61d9d5bad (diff) | |
| download | pure-d7caf4dfb1947d8f804e3d8ae7ef066c6e3b8fb7.tar.gz pure-d7caf4dfb1947d8f804e3d8ae7ef066c6e3b8fb7.zip | |
027's 4f-3a: no fixed count of inputs, views (the load's columns among them, in u16s), handlers or message fields: the header's u16s alone; a message's fields at most 64 (PURE_MESSAGE_FIELDS: a send pushes them all, as the stored sends' shapes hold them), outputs at most 255 (the store names them in a byte's count: the links and the outbox's image), the numbers of outputs a module dropped carried within it; an app's numbers of each input (last sent, saved, where the event began) in a block sized to its module's inputs (by_input), a replace laying the new one first and filling it by output name; image headers sized to the module (header_room); a view's arguments u32, a made column's field u16; pure-serve's timers grow to the module's inputs, its outlets and known senders its own count (OUTLETS, 32), a list view's JSON keys its columns on the stack for 64, else on the heap; unit test: 40 inputs and 70 views, the last of each used; counts: b40 against b39b within 0.01% with batches and without but BFS +0.09%; the bank's queries (s39b and s40 in turns, three each) in_credit -0.64%, per_branch -0.37%, field +0.34%, the rest within 0.22%; 008 and 027
Diffstat (limited to 'serve/message-json.h')
| -rw-r--r-- | serve/message-json.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serve/message-json.h b/serve/message-json.h index 45fae92..d59e511 100644 --- a/serve/message-json.h +++ b/serve/message-json.h @@ -13,7 +13,7 @@ typedef struct { unsigned char *table; /* for each field, its start and size (u32le each) */ const bool *given; /* fields given elsewhere (a request's query), or NULL */ bool lenient; /* a member naming no field is skipped, value and all (an API's answer) */ - bool seen[PURE_MODULE_FIELDS]; + bool seen[PURE_MESSAGE_FIELDS]; /* A rows field's array of objects is encoded in the stored form of its * list into rows (grown with malloc: the caller frees it), which the * caller places from rows_base on in the payload, as the table says. A |
