hash - Detecting Retweets using computationally inexpensive Python hashing algorithms -
To be able to detect RT of a particular tweet, I want to store the hash of each formatted tweet in the database I am planning.
What should I use the hashing algorithm? Cryptic course is not necessarily a minimum way of storing a data as something that can be done in comparison to that, if it is the same , Then in an efficient way.
My first attempt on this was using MD5 hash. But I thought there might be hashing algorithms which are more efficient because security is not required.
Are you trying to hash a string correct? Builtin types can be washed immediately, just type hash ("some string") and you get some int. Its a single function uses Python for dictonarys, so this is probably the best choice.
Comments
Post a Comment