vkitchen / cocomel

A search engine
ISC License
6 stars 0 forks source link

Expirement with alternative tree structures #1

Closed vkitchen closed 5 years ago

vkitchen commented 5 years ago

Traversing trees is a relatively expensive operation. There are alternative tree structures such as using an array which might offer performance gains

vkitchen commented 5 years ago

Using an array is unsurprisingly more expensive as enough memory has to be allocated for the whole tree and many trees are lopsided leading to large allocation for few nodes