Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old October 12, 2018, 22:52   #11
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,365
AnonymousHero is on a distinguished road
I've actually tried something very similar, and I was actually surprised that (at least with the libraries I tried) JSON serialization actually adds a considerable overhead to just writing out the save game data compared to the current situation. (My experiment was in ToME 2, but I'd assume it's pretty similar in Angband -- I don't think the code has changed that much.)

Some of this has to do with the absurd overhead of serializing e.g. each dungeon tile as individual strings, etc., but...
AnonymousHero is offline   Reply With Quote
Old October 13, 2018, 01:07   #12
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,909
Donated: $40
Pete Mack is on a distinguished road
Amusing story: originally thw bing search engine did all its anysis on json or a similar format, but a performance analysis showed it was spending 50% of CPU time in binary-decimal interconversion, and a bunch more time just parsing the files. It is a prohibitively costly format for large datasets.
Pete Mack is offline   Reply With Quote
Reply

Tags
json, savegame


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot read file '64x64.png' ZenDragon Vanilla 3 August 27, 2013 16:18
Save File failure CyclopsSlayer v4 2 June 8, 2012 15:43
where is the save file?? mlevin77 Development 3 March 15, 2012 11:40
Save File Debugger Sirridan Development 13 August 25, 2011 13:42
can't load save file. anti-save scumming feature? unbuttered_toast Vanilla 4 May 21, 2010 17:57


All times are GMT +1. The time now is 08:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.