«How I cut GTA Online loading times by 70%»↗
Some debug-stepping later it turns out it’s… JSON! They’re parsing JSON. A whopping 10 megabytes worth of JSON with some 63k item entries. […] But 10 megs? That’s nothing! And using
sscanf
may not be optimal but surely it’s not that bad? Well… […] I had no idea mostsscanf
implementations calledstrlen
[after every character read] so I can’t blame the developer who wrote this.
Otro ejemplo más de lo rota que está la informática.
Actualización — 1 de marzo de 2021
Un enlace relacionado: Parsing can become accidentally quadratic because of sscanf
.