mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
eliminate unnecessary copy in raddbgi string map interner
This commit is contained in:
@@ -1257,7 +1257,7 @@ rdim_bake_string_map_insert(RDIM_Arena *arena, RDIM_BakeStringMap *map, RDIM_Str
|
||||
if(node == 0)
|
||||
{
|
||||
node = rdim_push_array(arena, RDIM_BakeStringNode, 1);
|
||||
node->string = rdim_str8_copy(arena, string);
|
||||
node->string = string;
|
||||
node->hash = hash;
|
||||
node->idx = map->count;
|
||||
map->count += 1;
|
||||
|
||||
@@ -1194,11 +1194,4 @@ RDI_PROC RDIM_BakeSectionList rdim_bake_idx_run_section_list_from_idx_run_map(RD
|
||||
|
||||
RDI_PROC RDIM_String8List rdim_serialized_strings_from_params_bake_section_list(RDIM_Arena *arena, RDIM_BakeParams *params, RDIM_BakeSectionList *sections);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: [OLD] Baking
|
||||
|
||||
#if 0
|
||||
RDI_PROC RDIM_String8List rdim_blobs_from_bake_sections(RDIM_Arena *arena, RDIM_BakeSectionList *sections);
|
||||
#endif
|
||||
|
||||
#endif // RADDBGI_MAKE_H
|
||||
|
||||
Reference in New Issue
Block a user