Results 1 to 2 of 2

Thread: Slow parsing of facebook feeds

  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Question 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. #2
    Join Date
    Nov 2010
    Posts
    174

    Default

    @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.
    Roy Clarkson
    Spring Mobile Projects Lead

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •