{ "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2025-01-02T13:31:33.961Z", "attributedTo":"https://epiktistes.com/actors/toddsundsted", "replies":"https://epiktistes.com/objects/qYELRG__Ak4/replies", "to":["https://www.w3.org/ns/activitystreams#Public"], "cc":["https://epiktistes.com/actors/toddsundsted/followers"], "content":"
After I release a new version of ktistec, I build the server commit-by-commit to see which commits increase the server executable size and build time the most. I do this because I’ve learned that small implementation details (inlined code, small methods, using blocks) can have large impacts on these numbers.
Here's the output:
Commit Size Time\n======== ========== ======= ===== =======\n248850b1 36426264 10.3\n47268073 36425688 -0.00% 10.5 +1.60%\n344de272 36425688 +0.00% 10.8 +3.24%\nef561f52 36425944 +0.00% 10.8 -0.08%\n8ae2cbd4 36429128 +0.01% 10.8 -0.01%\n3e425f3b 36429128 +0.00% 10.8 +0.22%\n1487d903 36427704 -0.00% 11.0 +1.42%\n935c9ceb 36427016 -0.00% 11.0 +0.14%\nde37dc6a 36427016 +0.00% 10.9 -0.97%\na660a326 36427016 +0.00% 10.8 -1.12%\nff3d990e 36427016 +0.00% 10.8 +0.54%\n5724a58d 36523192 +0.26% 11.0 +1.78%\n7b5057d4 36523640 +0.00% 11.0 -0.44%\n30ca6a3f 36541352 +0.05% 11.6 +5.73%\ne2327eea 36671592 +0.36% 11.0 -5.36%\nad0d76eb 36671592 +0.00% 10.9 -0.48%\nd388e74f 36671592 +0.00% 11.4 +4.59%\ndacea7ad 36671592 +0.00% 11.0 -3.76%\n03d5dfd8 36671592 +0.00% 10.8 -1.63%\n79d9d89f 36671576 -0.00% 11.0 +1.82%\nb65d292f 36792376 +0.33% 11.1 +0.95%\n0ef53365 36808904 +0.04% 11.6 +4.88%\nb3766e7b 36808904 +0.00% 11.1 -4.50%\n56ba79ce 36825416 +0.04% 11.1 -0.50%\n4824df58 36825736 +0.00% 11.1 +0.31%\nc4705143 36837544 +0.03% 11.1 -0.03%\ne3d37ef7 36837768 +0.00% 11.5 +3.52%\n4509fa0d 36837768 +0.00% 11.0 -3.83%\n0ff9237b 36837768 +0.00% 11.0 -0.55%
Overall, the server executable size increased by about 1.1% and the build time increased by about 6.8%. Maybe that's not too bad for a major feature, but let's dig in.
It's nice to see that three commits account for almost all of the increase in server executable size:
But, compare 5724a58d to 8ae2cbd4 (Add `language` to `Account`). It added +22 loc but didn't increase the server executable size as much.
In any case, I'll look at e2327eea first. I'd like to understand why this relatively small change adds 130,240 bytes to the server executable size!
The follow ups are here and here and here.
", "contentMap":{ "en-US":"After I release a new version of ktistec, I build the server commit-by-commit to see which commits increase the server executable size and build time the most. I do this because I’ve learned that small implementation details (inlined code, small methods, using blocks) can have large impacts on these numbers.
Here's the output:
Commit Size Time\n======== ========== ======= ===== =======\n248850b1 36426264 10.3\n47268073 36425688 -0.00% 10.5 +1.60%\n344de272 36425688 +0.00% 10.8 +3.24%\nef561f52 36425944 +0.00% 10.8 -0.08%\n8ae2cbd4 36429128 +0.01% 10.8 -0.01%\n3e425f3b 36429128 +0.00% 10.8 +0.22%\n1487d903 36427704 -0.00% 11.0 +1.42%\n935c9ceb 36427016 -0.00% 11.0 +0.14%\nde37dc6a 36427016 +0.00% 10.9 -0.97%\na660a326 36427016 +0.00% 10.8 -1.12%\nff3d990e 36427016 +0.00% 10.8 +0.54%\n5724a58d 36523192 +0.26% 11.0 +1.78%\n7b5057d4 36523640 +0.00% 11.0 -0.44%\n30ca6a3f 36541352 +0.05% 11.6 +5.73%\ne2327eea 36671592 +0.36% 11.0 -5.36%\nad0d76eb 36671592 +0.00% 10.9 -0.48%\nd388e74f 36671592 +0.00% 11.4 +4.59%\ndacea7ad 36671592 +0.00% 11.0 -3.76%\n03d5dfd8 36671592 +0.00% 10.8 -1.63%\n79d9d89f 36671576 -0.00% 11.0 +1.82%\nb65d292f 36792376 +0.33% 11.1 +0.95%\n0ef53365 36808904 +0.04% 11.6 +4.88%\nb3766e7b 36808904 +0.00% 11.1 -4.50%\n56ba79ce 36825416 +0.04% 11.1 -0.50%\n4824df58 36825736 +0.00% 11.1 +0.31%\nc4705143 36837544 +0.03% 11.1 -0.03%\ne3d37ef7 36837768 +0.00% 11.5 +3.52%\n4509fa0d 36837768 +0.00% 11.0 -3.83%\n0ff9237b 36837768 +0.00% 11.0 -0.55%
Overall, the server executable size increased by about 1.1% and the build time increased by about 6.8%. Maybe that's not too bad for a major feature, but let's dig in.
It's nice to see that three commits account for almost all of the increase in server executable size:
But, compare 5724a58d to 8ae2cbd4 (Add `language` to `Account`). It added +22 loc but didn't increase the server executable size as much.
In any case, I'll look at e2327eea first. I'd like to understand why this relatively small change adds 130,240 bytes to the server executable size!
" }, "mediaType":"text/html", "attachment":[], "tag":[ {"type":"Hashtag","name":"#ktistec","href":"https://epiktistes.com/tags/ktistec"}, {"type":"Hashtag","name":"#crystallang","href":"https://epiktistes.com/tags/crystallang"} ], "url":["https://epiktistes.com/ktistec/performance/build-time-and-server-size-growth"], "type":"Note", "id":"https://epiktistes.com/objects/VUi_4Uh9vew" }