Skip to content
Commit 1c74de87 authored by Ed Tanous's avatar Ed Tanous
Browse files

Update get_routes to use trie for efficiency

This commit updates the behavior of request_routes to actually use the
trie data structure to find the appropriate routes.  This function was
originaly intended for debugging, but now with redfish, it is being
used to look up routes.

Also, update the prototype so it returns a string pointer to the main
route in the trie instead of copying the whole list of stings.

A future optimization should also give the ability to pick a "stop at"
character, or a depth so that users can decide how deep into the tree
they want to iterate, instead of getting the whole subtree and
filtering after the fact.

Change-Id: I8b98fb3f19f59a043ae6aa583ed62ab89be10eb8
parent c963aa42
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment