mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 15:42:23 -07:00
path tree baking
This commit is contained in:
@@ -13,6 +13,16 @@ rdim2_bake(Arena *arena, RDIM_BakeParams *params)
|
||||
}
|
||||
lane_sync();
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
//- rjf: build interned path tree
|
||||
//
|
||||
if(lane_idx() == 0) ProfScope("build interned path tree")
|
||||
{
|
||||
rdim2_shared->path_tree = rdim_bake_path_tree_from_params(arena, params);
|
||||
}
|
||||
lane_sync();
|
||||
RDIM_BakePathTree *path_tree = rdim2_shared->path_tree;
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
//- rjf: gather all unsorted, joined, line table info; & sort
|
||||
//
|
||||
@@ -327,19 +337,6 @@ rdim2_bake(Arena *arena, RDIM_BakeParams *params)
|
||||
RDIM_BakeStringMapTopology *map_top = &rdim2_shared->bake_string_map_topology;
|
||||
RDIM_BakeStringMapBaseIndices bake_string_map_base_idxes = rdim_bake_string_map_base_indices_from_map_loose(arena, map_top, map);
|
||||
rdim2_shared->bake_strings = rdim_bake_string_map_tight_from_loose(arena, map_top, &bake_string_map_base_idxes, map);
|
||||
#if 1
|
||||
for EachIndex(idx, rdim2_shared->bake_strings.slots_count)
|
||||
{
|
||||
for(RDIM_BakeStringChunkNode *n = rdim2_shared->bake_strings.slots[idx].first; n != 0; n = n->next)
|
||||
{
|
||||
for EachIndex(n_idx, n->count)
|
||||
{
|
||||
fprintf(stdout, "%.*s\n", str8_varg(n->v[n_idx].string));
|
||||
}
|
||||
}
|
||||
}
|
||||
fflush(stdout);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
lane_sync();
|
||||
|
||||
@@ -21,6 +21,8 @@ struct RDIM_UnsortedJoinedLineTable
|
||||
typedef struct RDIM2_Shared RDIM2_Shared;
|
||||
struct RDIM2_Shared
|
||||
{
|
||||
RDIM_BakePathTree *path_tree;
|
||||
|
||||
RDI_U64 line_tables_count;
|
||||
RDI_U64 line_table_block_take_counter;
|
||||
RDIM_LineTable **src_line_tables;
|
||||
|
||||
Reference in New Issue
Block a user