Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtSimplePirServer.BuildHint

procedure BuildHint;
Recomputes the whole hint from the current table, bumps the version and clears every row mark. Cost is RowCount*ColCount*SecretDim multiply-adds, n times one query.

IT ALSO TAKES THE DIGEST, here and not on first read. The pass is paid once per hint either way - measured at 152 ms over the 35.6 MiB hint of a 7,168-record shard and 553 ms over the 142.2 MiB hint of 100,000 records, against a BuildHint of 4.19 s and 58.3 s, so +3.6 % and +0.95 %
- and taking it here is what fixes WHICH hint it is over. A digest taken on first read is over the hint as it stands at that moment, so a write through the Hint property made before anyone read it lands in both the hint a client downloads and the stamp it is checked against, where it cancels; the same write made after is caught. That is a hole whose existence depended on whether a property had happened to be read, and it is closed by fixing the moment rather than by guarding the property. 'the stamp a BuildHint leaves is the stamp of the hint it BUILT, although nothing had read it when the hint was written through'.