WEBVTT

00:00:00.500 --> 00:00:03.117
Payloads has the vector the last update replaced.

00:00:04.017 --> 00:00:07.025
Its Nyxus data holds the Minima root and the descriptors for

00:00:07.038 --> 00:00:08.848
a fixed vector and a slot arena.

00:00:09.746 --> 00:00:11.231
We'll read the fixed vector.

00:00:12.129 --> 00:00:14.447
The vector descriptor identifies the block.

00:00:15.345 --> 00:00:18.496
The canister's stable provider reads the requested bytes from

00:00:18.509 --> 00:00:18.744
it.

00:00:19.642 --> 00:00:22.559
Minima allocates whole sixty-four kibibyte blocks.

00:00:23.457 --> 00:00:27.220
This vector uses one block with sixteen aligned node positions.

00:00:29.367 --> 00:00:32.999
Each unsigned sixty-four bit integer takes eight encoded bytes.

00:00:33.900 --> 00:00:37.520
For index seven, the vector can compute the exact position inside

00:00:37.533 --> 00:00:38.262
this node.

00:00:39.160 --> 00:00:42.468
The read starts fifty-six bytes into the vector's first block.

00:00:43.366 --> 00:00:46.374
The storage call copies eight bytes into a buffer the caller

00:00:46.387 --> 00:00:47.676
lends as workspace.

00:00:48.574 --> 00:00:52.025
The vector decodes those bytes and hands back one thousand one

00:00:52.038 --> 00:00:53.223
hundred and thirty-one.

00:00:54.121 --> 00:00:57.090
The caller can use this same buffer for the next operation.

00:00:59.200 --> 00:01:02.520
Suppose the caller asks for indices seven and nine together.

00:01:03.420 --> 00:01:07.092
Both are in this node, so get many makes one contiguous read.

00:01:07.991 --> 00:01:11.663
It starts at index seven and ends just after index nine, for

00:01:11.676 --> 00:01:13.212
twenty-four bytes in all.

00:01:14.110 --> 00:01:16.428
That span also contains index eight.

00:01:17.327 --> 00:01:20.803
The visitor receives only the requested values, one thousand

00:01:20.816 --> 00:01:23.772
one hundred and thirty-one and one thousand one hundred and

00:01:23.785 --> 00:01:24.735
sixty-five.

00:01:25.634 --> 00:01:27.926
The workspace holds those bytes for the call.

00:01:28.824 --> 00:01:31.949
The next vector read asks the provider for its span again.

00:01:34.100 --> 00:01:36.053
The slot arena has its own block.

00:01:36.953 --> 00:01:39.974
Hylix sees a contiguous virtual image for Records.

00:01:40.872 --> 00:01:43.776
Its page map lives in the Minima root in Payloads.

00:01:44.675 --> 00:01:47.682
Each virtual page points to a different physical block in the

00:01:47.695 --> 00:01:48.841
same stable memory.

00:01:49.740 --> 00:01:52.539
The payloads module still declares Nyxus memory.

00:01:53.438 --> 00:01:56.628
Minima is the stable storage engine its collections use through

00:01:56.641 --> 00:01:58.073
these retained descriptors.

00:01:58.971 --> 00:02:01.341
The fixed vector knew exactly where to look.

00:02:02.240 --> 00:02:05.326
With a map, the collection also has to find the key.

