Hi,
1.Delay in call response
The past few days I have been testing new instances of Twister/Twisting and I noticed that when starting a new instance the deamon responses really badly for about 15 to 20 minutes. The following is the process I go through:
- Start Twisting
- Start the deamon in the background
- Make sure the blockchain is up to date + there is at least one connection
- Make the user logs in his account
- Get following of user
- Follow all those users
- Go the 'main feed'
- Call getposts to get the latest posts (getposts 2- '[{"username":"arco"}, {"username":"john"}, {"username":"smith"}, ... + 130 other users ... ]'
This latest call, getposts returns some posts just after the user logged in, but one minute later the call doesn't get a response at all. I did notice though, that calling the getposts call with only one user does get a response after a while. (Is it bad practise to call getposts with all the users the user follows?)
During this time I took a look at the debug.log and nothing seemed to happen. The only thing the deamon did was 'adding torrent for user [<random username>]'
A possible cause might be that I am not shipping the right files of the blockchain, so the deamon is processing this database or whatsoever. See next question.
All in all the problem is that I can't show the user any posts when the client gets started for the first time. Making the user wait for 15 to 20 minutes isn't really an option though.
2.Shipping the blockchain
I'm want to ship the blockchain together with the application, I hope this is not bad practice? Which files should I ship exactly. At the moment I ship the following, and it seems to work fine but I would like to be sure that I am not sharing private or unnecessary data:
- The folder blocks
- The folder chainstate
- twister.conf
3. Deamon size
The deamon (twisterd.exe) size of the Windows build I have is 147MB. Seems a bit big for a data processing application. Is this correct or did something go wrong with building maybe? I don't have a Linux instance to compare it with at the moment.
That's it! Once again, thanks for your time :-)
Arco