Remove duplicate paragraph

master
Tait Hoyem 2 years ago
parent fc39dd93a7
commit 9281216c93

@ -364,13 +364,6 @@ If it could be possible to do these intensive tasks within native Rust code, wit
It would make it INSANELY fast for structural nav, and if it needs to call out to DBus for the text, that's fine by me.
Storing text could potentially balloon the memory usage pretty hard anyway, so I'm not sure that's a great idea.
So, store some basic info like role, id, parent id, ids of children, maybe a few more. All in all it should represent less than 50 bytes on average.
This means that even with a million items, which I hope someone would never be so unfortunate as to need that many, it could all be contained safely within about 50MB of RAM.
It would be worth the tradeoff in nearly every single case I can think of.
And, even if we added, say a 100-byte string buffer for smaller strings to be cached.... Then we'd still be around 150MB of ram for 1 million elements cached---I would like to point out that this is stupendously high, and is fairly impractical to begin with.
I think the memory-time tradeoff will win in this case.
So, store some basic info like role, id, parent id, ids of children, maybe a few more. All in all it should represent less than 50 bytes on average.
This means that even with a million items, which I hope someone would never be so unfortunate as to need that many, it could all be contained safely within about 50MB of RAM.
It would be worth the tradeoff in nearly every single case I can think of.

Loading…
Cancel
Save