A place for the Red community to talk about whatever they want, to keep other rooms clean.
Oct 18 2019 17:14
@greggirwin banned @SmackMacDougal
I think that the reason is, that map! is not the best type for something like JSON, because it requires hash tables.. and as JSON file is usually transferred to map of maps, there is wasted quite a lot of memory and computation to build hashtable for each map.
@GiuseppeChillemi if you want to just parse the file to get the info from it... use just plain parse and you will have much better times. the structure is not too complicated.
Maybe map! could internally use a block and not hashes for small maps with just few keys.
@ne1uno it will not be related to url parsing, because all urls are in this file stored as plain strings
@Oldes My bookmarks are mixed: I use them as History. I save in folders "bursts" of search results about topics, so it increases 30/50 entries each time.
I have also saved the map to Red file and LOADed it. It takes 4 seconds vs. 80.
The slowness is related to parsing and conversion. because at LOADing to a MAP I imagine the hash tables are recalculated.
I think it is because of rehashing... and stressed GC. I'm not sure if it's possible to improve it without not using map!. But as I said... it's easy to use pure parse just to get info you need without ballast which is in this file.
And my opinion is, that 01:20 minutes is bad.
Rewriting JSON codec in R/S would help if anyone wants to give it a try :)
We can do most of that in red/red, where the bulk of the community will see it. Advocacy is a very general topic, but we can point to the wiki page on it as well.
Advocacy often is the place "strong" conversations, so it would be useful to keep red/red free from them.
Well, let's see how it goes. New rooms usually come up after the need is determined by pushing a current room too far. :^)
I can help to shorten the time for the creation of the group, but you should attract both Doc and Vladimir to join some Red advocacy discussion on Red/Red. I have a special skill to upset them (but I respect both either for their great knowledge, commitment and also for the spirits that moves their hearts).