mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
it's one of those bugs where you're like oh...right. it's doing exactly what i told it to. I just told it to do the wrong thing. Right. If you're updating data at the end of a file, you kind of don't want to delete the file entirely then do the update. Fix the code so that in the case of a file extension of a small key, you're re-inserting the key in its entirety (not just the updated portion) on the extension case. Also handled an issue with large files where key extension should not lead to overwrite of the neighboring data, and put a cap of the large file limit of 32GiB. See comments for thoughts on the trade-off of the large file limit versus the allocation limit of the number of files and the physically realistic outcomes for the PDDB. Basically as written the PDDB can handle 32GiB files (big enough to hold a blu-ray movie, but not a 4k/8k movie, uncompressed movies, and/or large virtual machine images), and can handle creation of files at an average rate of one per second for 10 years without stop before running out of virtual memory space. This isn't "Web scale" as large servers will definitely require files bigger than 32GiB these days, and can easily create files at a rate of thousands per second. But, the PDDB isn't performant enough nor targeted toward large scale server applications. It should, however, be adequate for pretty much any user data on a mobile phone if it were recompiled for a 64-bit target. And, if you needed to scale up to bigger files and/or more write cycles, the problem can be solved with some simple memory allocation tricks on the large pool, but because Precursor only has 16MiB of its own RAM to play with, we don't implement that as the RAM overhead is both detrimental and unnecessary at our scale of operation. |
||
|---|---|---|
| .. | ||
| basis.rs | ||
| dictionary.rs | ||
| fastspace.rs | ||
| hosted.rs | ||
| hw.rs | ||
| key.rs | ||
| murmur3.rs | ||
| pagetable.rs | ||
| trngpool.rs | ||
| types.rs | ||