Repository navigation
Description
Done in #193
The original scope — shipping 1,254 records per login that were byte-identical to the client's own DB2 — is fixed:
| before | after | |
|---|---|---|
| GameData load time | 1566.2 ms | 665.5 ms |
| records parsed at startup | 600,211 | 58,179 |
| hotfix ids advertised at login | 1,256 | 4 |
CSV/Hotfix on disk |
44 MB | 2.6 MB |
Done in #595
The SpellXSpellVisual half, in the shape suggested here: the advertised set lives in one place, AdvertisedHotfixTables, read by SMSG_AVAILABLE_HOTFIXES at login and by the loader at startup. On 3.4.3 and later the loader fills its two lookups (SpellVisuals, SpellXSpellVisualToSpellVisual) and builds no records.
| client | records in GameData.Hotfixes |
allocated during load | heap kept after load |
|---|---|---|---|
| 3.4.3 / 3.3.5a | 58,257 → 24,791 | 137.7 → 122.8 MB | 102.7 → 89.3 MB |
| 4.4.2 / 4.3.4 | 63,765 → 16,826 | 166.0 → 146.0 MB | 125.5 → 107.0 MB |
| 1.14 / 2.5 | unchanged | unchanged | unchanged |
The same PR removed a race between the two loaders that both assigned GameData.SpellVisuals; on 1.14 a Release build lost the three rows of SpellXSpellVisual1.csv on every start.
Done in #596
The ItemEffect half. LoadItemEffectHotfixes builds no records when the table is not advertised, which is 3.4.3 and later; 1.14 and 2.5 ship no Hotfix/ItemEffect CSV.
| client | records in GameData.Hotfixes |
allocated during load | heap kept after load |
|---|---|---|---|
| 3.4.3 / 3.3.5a | 24,791 → 82 | 121.4 → 110.4 MB | 88.6 → 78.8 MB |
| 4.4.2 / 4.3.4 | 16,826 → 78 | 142.7 → 134.6 MB | 105.7 → 98.8 MB |
| 1.14 / 2.5 | unchanged | unchanged | unchanged |
The question left open here was which CSV-built ItemEffect records are ever sent. None is, with its CSV content: UpdateHotfix rewrote content and status before GenerateHotFixMessage sent a record, so all a sent record kept from the CSV was its hotfix id (2,500,000 + row). Without the CSV record the same content goes out under the next free id from 2,100,001, as Item, ItemSparse and the appearance tables always did.
Checked three ways (details in the review comment on #596):
- Every 25th loaded
ItemEffectrow throughUpdateHotfixandGenerateHotFixMessageon both builds: 989 records on 3.4.3 and 670 on 4.4.2 equal in table, record id, status and content, 300 on 1.14.2 equal in the id too. - A 3.4.3 client on AzerothCore with three items whose server row differs from the client's: same spells and tooltips before and after, same record bytes in the capture.
- The client's
DBCache.bin: a pushed record's hotfix id is not kept beyond the next run, and an id that meant another record in the run before did no harm.
What remains is still built at startup only because it is advertised (82 records on 3.4.3, 78 on 4.4.2).
Open ends, none of them this issue's: LoadItemEffectHotfixes and CSV/Hotfix/ItemEffect4.csv are now dead and can be removed; 4.4.2 was not play-tested; AddItemEffectRecord takes baked record ids from the 3.4.3 table on 4.4.2 as well.
Also deferred from the original scope
The bit-packed push id ((tableIndex << 21) | recordId). Push ids must be stable across sessions or the client's DBCache.bin diff re-downloads everything, but that only matters for advertised tables — and AreaTrigger already uses stable HotfixAreaTriggerBegin + at.Id. The other ~40 loaders still use Begin + counter (row position in the CSV), which is unstable if the shipped set changes.
Tooling
scripts/compare-hotfix-csv.py— is a hotfix CSV a client mirror or a real override?--all 3reproduces the audit that drove perf(hotfix): drop client-mirror hotfix data — GameData load 1566ms -> 666ms, 44MB -> 2.6MB #193.scripts/diff-dbc-vs-db2.py— the inverse: which 3.3.5a ids the 3.4.3 client cannot resolve, i.e. what genuinely needs a polyfill.
Activity
perf(hotfix): delete client-mirror CSVs and guard every loader
[-]Minimise hotfix content sent at login: all 1254 records currently shipped are identical to the client's own data[/-][+]Stop building hotfix records for tables that are never advertised (58,179 parsed to advertise 4)[/+]perf(v3_4_3): stop advertising hotfix records identical to the client…
rursache commentedon Aug 29, 2026
nice finding on this. if PR is merged we can close the issue?
Xian55 commentedon Aug 29, 2026
Gooday, its really all about that 58k allocations during startup. Minor thing
feat(v3_4_3): regenerate the static CSV data and deliver quest bits
perf: build no SpellXSpellVisual hotfix records a client is never tol…
[-]Stop building hotfix records for tables that are never advertised (58,179 parsed to advertise 4)[/-][+]Stop building ItemEffect hotfix records no client is sent (SpellXSpellVisual done in #595)[/+]perf: build no ItemEffect hotfix records from CSV on 3.4.3 and later