ModernUO/Projects/UOContent/Commands/Object Creation
Kamron Batman bff08c69d2
perf(objects): batch CAGLoader.BuildTree leaf insertion to O(N)
BuildTree previously grew each category's Nodes array by one element per
object via AppendObject/AppendNode, causing O(N^2) array copies across large
categories (e.g. Items.Uncategorized) on every server startup. Leaves are
now accumulated per-category in a List and flushed with a single array
allocation per category via a new AppendNodes helper. AddFallbackForStaleCache
and LoadLegacy are untouched.

Also adds a JSON round-trip test for ObjectIndexFile/ObjectIndexEntry to
guard the gfx/hue property mapping and the Objects = [] initializer against
double-appending on deserialize.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 12:38:05 -07:00
..
Add.cs feat: Add zero-alloc interpolation handler to ValueStringBuilder, replace all StringBuilder usage (#2387) 2026-03-22 14:23:44 -07:00
AddGump.cs fix: Fixes adding items with ambiguous type lookup (#2307) 2026-01-06 21:21:29 -08:00
CAGCategory.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
CAGLoader.cs perf(objects): batch CAGLoader.BuildTree leaf insertion to O(N) 2026-07-19 12:38:05 -07:00
CAGNode.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
CAGObject.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
CategorizationSync.cs feat(objects): CategorizationSync.Reconcile — append Uncategorized + report orphans 2026-07-19 12:38:03 -07:00
CategorizedAddGump.cs feat: Consolidates staff gump layouts (#2404) 2026-04-08 11:42:46 -06:00
Decorate.cs feat: Adds rope teleporter for New Haven Mines (#2439) 2026-05-03 17:23:31 -07:00
DecorateMag.cs fix: Consolidates Color/Center html (#1762) 2024-05-07 23:56:32 -07:00
GenTeleporter.cs fix: Adds command help, webpage, and fixes issues with other commands (#1669) 2024-02-10 00:19:19 -08:00
ObjectCacheBuilder.cs feat(objects): ObjectCacheBuilder — assemble index + per-category detail chunks 2026-07-19 12:38:04 -07:00
ObjectCacheGenerator.cs feat(objects): ObjectCacheGenerator core + GenObjects command 2026-07-19 12:38:04 -07:00
ObjectDocs.cs feat(objects): cache DTOs + chunk-key/friendly-type naming helpers 2026-07-19 12:38:02 -07:00
ObjectIntrospection.cs feat(objects): DiscoverConstructibleTypes — all constructible Item/Mobile types 2026-07-19 12:38:03 -07:00