[squeak-dev] Freeze when exploring Dictionary with nontrivial size :(

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Freeze when exploring Dictionary with nontrivial size :(

Klaus D. Witzel
Hi list,

Loading the WordNet lex db into Squeak gives a Dictionary with some  
150'000 entries. When inspecting the dict then GC seems to get involved  
during scrolling :( even when no entry is selected.

But when exploring it, the first click just consumes CPU and alt-. shows  
debugger but the .image is already frozen :(

I can imagine that I'm not the first one who runs into explorer+dictionary  
freeze. Is there a cure, a fast+easy dictionary implementation for Squeak?

TIA

/Klaus

--
"If at first, the idea is not absurd, then there is no hope for it".  
Albert Einstein


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Freeze when exploring Dictionary with nontrivial size :(

Lukas Renggli
> I can imagine that I'm not the first one who runs into explorer+dictionary
> freeze. Is there a cure, a fast+easy dictionary implementation for Squeak?

MCHttpRepository
    location: 'http://www.squeaksource.com/BTree'
    user: ''
    password: ''

--
Lukas Renggli
http://www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Freeze when exploring Dictionary with nontrivial size :(

Klaus D. Witzel
On Fri, 12 Dec 2008 11:33:13 +0100, Lukas Renggli wrote:

>> I can imagine that I'm not the first one who runs into  
>> explorer+dictionary
>> freeze. Is there a cure, a fast+easy dictionary implementation
>> for Squeak?
>
> MCHttpRepository
>     location: 'http://www.squeaksource.com/BTree'
>     user: ''
>     password: ''


That's the way, I like it :) loads 147'306 String keys very fast (and  
doesn't freeze :)

Thank you very much Lukas.

/Klaus


--
"If at first, the idea is not absurd, then there is no hope for it".  
Albert Einstein


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Freeze when exploring Dictionary with nontrivial size :(

Tapple Gao
In reply to this post by Klaus D. Witzel
On Fri, Dec 12, 2008 at 11:05:30AM +0100, Klaus D. Witzel wrote:

> Hi list,
>
> Loading the WordNet lex db into Squeak gives a Dictionary with some  
> 150'000 entries. When inspecting the dict then GC seems to get involved  
> during scrolling :( even when no entry is selected.
>
> But when exploring it, the first click just consumes CPU and alt-. shows  
> debugger but the .image is already frozen :(
>
> I can imagine that I'm not the first one who runs into explorer+dictionary  
> freeze. Is there a cure, a fast+easy dictionary implementation for Squeak?

I don't think the dictionary is the cause of this problem,
although it is a problem. I think the problem is the fact that
explorer tries to print every entry in the dictionary, convert
it to 150,000 TreeItemMorphs (or whatever the class name is), and draw
them, even the ones that are unseen. SimpleHeiarchialListMorph
is not very smart with big lists

--
Matthew Fulmer -- http://mtfulmer.wordpress.com/