0

i have a tree data structure, building the tree can take a long time (more than a hour), as it is been build with many data from DB. i'm looking for good solution to save the tree state after the first build, so that i well be able to perform load instead of creating it again. the main idea is to have some kind of an image of the tree, for the option of fast creation, and for debug. it is implemented in C#. thanks.

RL Do
  • 1

1 Answers1

0

What takes so much time in building the tree?

You can always save a flat string of the tree using a techinque that you can see here: Saving a Binary tree to a file

Community
  • 1
  • 1
Amir Popovich
  • 29,350
  • 9
  • 53
  • 99