Quantcast WoWInterface - View Single Post - Addon settings take excessive amount of time/syscalls
View Single Post
11-28-16, 06:43 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,889
I honestly can say that I'm not all that surprised that it's taking 620k write calls to output a 3.6 MB file. The reason is a serializer processes a table and outputs a stream as it does its work. It writes a beginning enclosure when it encounters a table, it writes for every key/value pair, it writes an ending enclosure when it exits a table, and so on. When you have a large table and/or lots of nesting, that's a lot of individual writes.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)