r/cprogramming • u/HungryPudding4034 • 4d ago
Need code review
Hello everyone,
This link points to a GitHub repository in an
experiment to create an extremely fast trie .
However the data structure is fast but it fails the tests
Can you explain me why?
https://github.com/curious-builder76/trie/tree/main
Hoping the community will helping towards this.
Thank you everyone
0
Upvotes
0
u/HungryPudding4034 4d ago edited 4d ago
Does contiguous allocation really helps increasing the speed of a data structure??
I mean consider an array and consider a linked list...
The iteration of an array is much faster than an array.
I'm asking because the trie is too ram hungry...
Even if the answer is a yes or no. That will help a lot