[GOODIE] Fun with QuadTrees

Andreas Raab andreas.raab at gmx.de
Tue Jul 22 01:25:35 UTC 2003


Perhaps not quite as fancy as a Quadtree but about 20x faster when having
10k elements for lists is the attached CS. It uses a simple, specialized
version of TransformMorph which makes a few assumptions about the layout of
the children (e.g., being vertically arranged) and uses binary subdivision
in drawing. It's basically the same effect as with the Quadtree version (it
just doesn't have to deal with the nastyness of updating the tree etc.)

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
> Behalf Of Tim Rowledge
> Sent: Tuesday, July 22, 2003 1:58 AM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Re: [GOODIE] Fun with QuadTrees
> 
> 
> "Eddie Cottongim" <cottonsqueak at earthlink.net> wrote:
> 
> > I decided to teach myself about this data structure and see 
> if it could be
> > used to help ScrollPanes with very large numbers of objects 
> scroll more
> > smoothly.
> This is definitely the sort of work I like to see getting 
> done. What is
> the performance impact on more 'realistic' lists - ie those found in
> system browsers or the BFAV?
> 
> tim
> --
> Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
> The value of a program is proportional to the weight of its output.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ListScrollerMorph-ar.1.cs
Type: application/octet-stream
Size: 2916 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030722/4ff09397/ListScrollerMorph-ar.1.obj


More information about the Squeak-dev mailing list