TreeViews uses a Hierarchial data structure. This gives you an opportunity to make it work very quickly.
The trick is to load sub-elements
on demand (aka: lazy-loading). In other words, only load the expanded level. The performance will feel instant. :)
[edit:] Just had a look at google search and there are some links with some great solutions:
angularjs treeview load on demand[
^]