Mester / demo-day-vikings

The Unlicense
2 stars 1 forks source link

Replace Post class with multiple functions. #64

Closed bdauer closed 8 years ago

bdauer commented 8 years ago
tylerphillips55 commented 8 years ago

Removing and replacing the post class will be simple. The question is what should we replace it with? If we care about search speed, a dictionary is faster. However, the fastest would be named tuples.

tylerphillips55 commented 8 years ago

On second thought, if we've already entered the json-encoded data into the db and are merely pulling data out that matches the criteria, it wont make much of a difference as the "search" would have been essentially done. All results in the collected results will be given. Search speed is not much of an issue. On the discussion of memory, dictionaries and named tuples aren't much different I believe.

tylerphillips55 commented 8 years ago

Never mind, just saw your post about tinydb. So yes, it does matter.

anubhavcodes commented 8 years ago

@tylerphillips55 The new branch dev has the code for this. Check it out.