educative.io

Is it status or tweet?

Sometimes it is used as “user status” and sometimes it has been used to represent “tweets”

What is “User status” mentioned here?

The average size of a status is 300 bytes

Hi Emre Caglar,

Thanks for pointing this out and sorry about the confusion; it should be ‘tweet’ all around. We have updated the chapter.

1 Like

Thanks for the answer. Then if we assume all tweets are ASCII then they are 140 character max then tweet size should be 140 char * 1 byte (ascii) = 140 Bytes right? Why it is 300 byte then?

In a very simple terms yes, maximum size will be 140 bytes. But you can expect that tweet characters are unicodes (plus all those emoticons and stuff) and unicode characters can take a lot of bytes (depending upon the encoding). For example UTF-8 can take 1-4 bytes. Even Java’s ‘char’ takes two bytes. See following links for further reading.


“we have around 300K English words and 200K nouns, then we will have 500k total words in our index. Let’s assume that the average length of a word is five characters. If we are keeping our index in memory, we need 2.5MB of memory to store all the words.”

Why 1 character becomes 1 byte here? Sometimes, it’s 2 bytes for 1 character and sometimes 1 byte for 1 character in this course. it’s confusing.

2 Likes