Announcement Announcement Module
Collapse
No announcement yet.
Slow parsing of facebook feeds Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Slow parsing of facebook feeds

    I am testing spring android samples now and I have faced such kind of problem:
    I am starting FacebookHomeFeedActivity, requesting feeds from facebook.
    I added some logging to measure time spent on different steps.

    Here are my timings:
    12-23 11:58:02.711: VERBOSE/FACEBOOK(14706): onPreExec 130
    12-23 11:58:02.741: VERBOSE/FACEBOOK(14706): doInBg start 163
    12-23 11:58:02.771: VERBOSE/FACEBOOK(14706): before getForObject 193
    12-23 11:58:03.011: INFO/ActivityManager(120): Displayed org.springframework.android.facebookclient/.FacebookHomeFeedActivity: +443ms
    12-23 11:58:06.144: VERBOSE/FACEBOOK(14706): after getForObject 3562
    12-23 11:58:06.144: VERBOSE/FACEBOOK(14706): before deserializeList 3562
    12-23 11:58:14.922: VERBOSE/FACEBOOK(14706): after deserializeList 12341
    12-23 11:58:14.922: VERBOSE/FACEBOOK(14706): doInBg finish 12341
    12-23 11:58:14.922: VERBOSE/FACEBOOK(14706): onPostExec finish 12345

    Here we can see that the http-request took us 3,5 seconds, and deserializeList took almost 12 seconds to complete!

    Is there a way to somehow fasten this issue?

  • #2
    @zaur there can be a few reasons for this. First, it depends on the size of the dataset being received. Additionally, the device may limit the speed of processing, depending on processor speed. Spring for Android uses Spring Social for the facebook functionality. Spring Social in turn utilizes the Jackson JSON processor for all its deserialization. The limiting factor is going to be how fast Jackson performs on a specific device with a specific data set.

    Comment

    Working...
    X