Re: Achieving very smooth scrolling of large data sets?

From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 06/25/04

  • Next message: Michael Livingston: "Un-Verbose Messages"
    Date: Fri, 25 Jun 2004 16:50:33 GMT
    
    

    On 25 Jun 2004 09:37:59 -0700, spammeallyoucan@hotmail.com (John Doe)
    wrote or quoted :

    >- For instance the screen fits R records at any time, and
    >- the scrollbar is P pixels high, then we need to cache at
    >- most P blocks of R records to smoothly scroll through
    >- the entire database by mouse, regardless of the size of
    >- the database.

    No, that's not what I was saying, but what you suggest is an
    interesting idea. When people jump around with the scroll bar, you
    need only get them approximately to where they asked to go, then let
    them fine scroll from there. So you only need cache a selection of
    jumping in points, e.g. the start of each letter of the alphabet, and
    take them to the nearest one in your cache, and then start frantically
    premptively back/forward caching from there.

    What I was talking about is the slow response to mousing that can
    happen if you get a very large number of components in a complex
    layout. The layout manager on receiving a mouse event has to decide
    which component it belongs to. The generic way of solving this is to
    ask each component in turn, "is this yours?" (speaking very loosely).

    I was suggesting speeding this process up my taking advantage of any
    regularity in the layout. E.g. if it were a grid of 100 pixel squares
    10 across you could compute the row as y/100 and column as x/100. Then
    you could compute the component index as row*10 + col which can be
    computed in o(0) time.

    -- 
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming. 
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    

  • Next message: Michael Livingston: "Un-Verbose Messages"

    Relevant Pages

    • Re: IE 6 cannot download
      ... > Level: scroll down to ... - no cache directory is specified ... if you try to specify a folder for the cache, IE tells you there is not ... Problem only occurs for 'downloads', which i guess means anything mime type ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: 1600+ quilt blocks
      ... useful information - some just for fun! ... scroll down to read the links on the right hand side. ... Not all the links on the quiltbus site links to quilter's cache, but most of them seem to do so. ... I always thought that it is a bit odd to have a webpage of links into one other site - this doesn't just happen with quilting patterns, it is quite common on the web. ...
      (rec.crafts.textiles.quilting)
    • Re: X2 3800 vs D830
      ... ...scroll down a ways and look for the 2 red bars. ... x 1mb L2 cache! ... Both are very fast CPUs. ...
      (microsoft.public.windowsxp.hardware)
    • Re: fedoraforum.org down?
      ... hidden files. ... scroll down to you see .mozilla ... and in there there should be a cache folder, just delete all in hte folder ...
      (Fedora)
    • Re: How to print a sorted list as a multi-column table
      ... So to see the f item you would have to scroll down all the way. ... what's the rationale for using the layout? ... Volume in drive C has no label. ...
      (comp.lang.python)