Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8725587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:04:20+00:00 2026-06-13T08:04:20+00:00

Some web pages that I process in Jsoup are heavy. By heavy I mean

  • 0

Some web pages that I process in Jsoup are heavy. By “heavy” I mean the page either contains lots of HTML (let’s assume the page has already been downloaded), or it requires several iterations on the same document (created only once via Jsoup.parse()).

For that reason, I would like to present to the user a progress bar with a guesstimate of how much time is left.

One approach is to just measure the volume of HTML (in KB or MB) and come up with a speed factor (unfortunately, totally dependent on speed of the system this code runs on).

Another approach is to count the number of nodes?

Due to the obvious in-deterministic nature of this, am I calling for trouble?

Ideas of better ways to handles this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:04:21+00:00Added an answer on June 13, 2026 at 8:04 am

    Summarizing the answers so far: No, it is not possible to estimate or predict Jsoup processing time of a chunk of HTML.

    The reason is, aside from the fact that Jsoup.parse() is the time-consuming component, Jsoup can run on many platforms/devices, some are extremely slow, some are very fast and there isn’t a way (wait) for Jsoup to correlate its processing stages/operations with the architecture on which it runs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets suppose that I have some pages some.web/articles/details/5 some.web/users/info/bob some.web/foo/bar/7 that can call a
I'm using Bootstrap on a web app that has some pages that contain iframes.
I created a web page that print some text using JSF I've added spaces
I am writing a web page that uses some php files. The php isn't
I have a web page that prompts for user input via DropDownLists in some
I'd like to extract some information from a web page that's contained in an
Ok so I need to download some web pages using Python and did a
I need to make a WebView show some web pages where some parts are
When attempting to check the 'content-length' header for some web pages using urllib2 in
I've encountered the Iconv::IllegalSequence error on some web pages when using mechanize lib. Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.