3 ms·
Sure, it logically makes no sense. But while learning a new subject, have you never made a silly mistake like: bool getSchemaSizes(size_t * expectedBatchSize,
by FarmerPotato 4mo ago
Sure, it logically makes no sense. But while learning a new subject, have you never made a silly mistake like:
bool getSchemaSizes(size_t * expectedBatchSize, size_t * expectedEntriesPerBlock)
{
...
}
size_t expectedEntriesPerBlock, expectedBatchSize;
getSchemaSizes(&expectedEntriesPerBlock, &expectedBatchSize)
initBloomFilter(expectedEntriesPerBlock)
- bawolff 4mo agoI said as much in my comment.
- HelloNurse 4mo agoThe quoted code suggests that the wrong sizes aren't evident constants in code (there is a function to compute/retrieve them) and extra inspection during debugging is the most plausible way to detect them. Hopefully this kind of bug is enough to teach the important of measuring, logging and testing to a naive optimist.