Y
Hacker News
new
|
ask
|
show
|
jobs
by
cylon13
1000 days ago
Is your assertion that it takes more time for a CPU to read values out of a 30 byte struct and do a couple shifts and branches than to parse a JSON representation?
2 comments
hutzlibu
1000 days ago
The JSON needs to be parsed only once. Then it is (or can be) just any object to your liking.
JSON is for storing data as text. Not work with that text all the time.
link
croes
1000 days ago
It's not just reading, you need to process the data to get castling availability, en passant target etc.
link
JSON is for storing data as text. Not work with that text all the time.