-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RAD] I'm completely lost... #1329
Comments
a small note: if I change |
Ok, my current observations so far:
In order to speed my in-memory(!) store up, I had to change my RAD adpter's code to
This is nothing but a hack - however, without that hack, my browser starts slowing down heavily after a few writes... |
RAD also strangely reads the previously written key again - and writes it out again, unchanged! How useless is that? |
I meanwhile set the Here is a transcript of the first few operations on my in-memory store:
|
well, entry "%1C" seems to contain, what is called the "radix tree": the JSON string of an object with the hierarchy of keys. I have no idea what that is good for as the get and put calls to my adapter always contain the full key of the affected entry... |
RAD being replaced with Book, just heads up. So if you're willing to help hack on that instead, please let me know! We do screen calls. @rogowski has been helping. RAD chunks the tree into pages, so what you're seeing is the pages name and the root file that keeps track of the folder of files. More explained here: https://youtu.be/5fCPRY-9hkc?t=1275 but note: Book will be replacing this, so don't spend too much time/effort on it. |
That's good to know - I already lost a day on this because I searched the problem on my side...will give up on RAD then! |
@amark Where can I find information on Book? |
@rozek I'm back to working on Book, was distracted with @SecureRender for a while. Want to help me & Rogowski? @jadbox same??? Sorry not much docs yet, mostly just ask me on http://chat.gun.eco and maybe look thru tests in tests/rad/book (or... somewhere like that) or jump on a call with me (DM on twitter). |
The title says everything: I'm completely lost...
I added RAD to my browser as mentioned in the docs and continued evaluating GUN - until I saw that there were only two keys in my "IndexedDB": namely "%1C" and "!"
So I started evaluating RAD using a
trivialRADStore
:which I could directly write to:
Surprisingly, my RAD adapter was also called with two keys only (the same as above). (However, I also logged the "info" record returned by the "read" variant of the
RAD
function - and that sometimes reported it would have parsed "1048576" bytes/chars although I had not written much at that point....)Then I had the idea that I might have written too few keys and too little data - hence I wrote a simple function to fill my store
and that soon started to take looooong to write a new entry - and had to be stopped after very few write calls (it was invoked with n = 3 - for 1110 entries - but did not come far...).
So: what am I doing wrong? Where is the "radix tree" promised by the docs?
The text was updated successfully, but these errors were encountered: