{"action":"opened","issue":{"url":"https://api.github.com/repos/adrianmay/rhaboo/issues/26","labels_url":"https://api.github.com/repos/adrianmay/rhaboo/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/adrianmay/rhaboo/issues/26/comments","events_url":"https://api.github.com/repos/adrianmay/rhaboo/issues/26/events","html_url":"https://github.com/adrianmay/rhaboo/issues/26","id":67993758,"number":26,"title":"Try less grainy storage scheme ","user":{"login":"adrianmay","id":71239,"avatar_url":"https://avatars.githubusercontent.com/u/71239?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianmay","html_url":"https://github.com/adrianmay","followers_url":"https://api.github.com/users/adrianmay/followers","following_url":"https://api.github.com/users/adrianmay/following{/other_user}","gists_url":"https://api.github.com/users/adrianmay/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianmay/subscriptions","organizations_url":"https://api.github.com/users/adrianmay/orgs","repos_url":"https://api.github.com/users/adrianmay/repos","events_url":"https://api.github.com/users/adrianmay/events{/privacy}","received_events_url":"https://api.github.com/users/adrianmay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-13T03:09:10Z","updated_at":"2015-04-13T03:09:10Z","closed_at":null,"body":"There's a speed advantage to using JSON.stringify because it's native code. The advantage is still attractive even if one of the fussy forms of stringify is used. In this case, it would certainly be necessary to use a replacer function to blot out the object valued properties, otherwise the multiple-reference-to-same-object behaviour would go pear shaped. But perhaps the speed penalty for using the replacer function is so bad that editing the string afterwards might be better.\r\n\r\nHaving one property per LS slot is quite extreme. The other extreme is to put all properties of a given object into a single slot, where the value of an object-valued property is a reference to another slot. Between the two extremes, there might be some hashtable-like approach with a handful of properties per slot. \r\n\r\nFirstly, the other extreme needs to be performance tested. The results will influence what happens next.\r\n\r\n"}}