Hi,
anyone knows how to use NewList without icons.

Background:
I have a collection with 5000 entries, every entry is
a list of 20 strings. Inspecting this collection works, but
scrolling the left pane of the inspector window is awfully slow.
This is unexpected, as the only changing visual parts are the
collection indices.

For exampel, inspect the following collection:
(1 to:5000) collect:[:x | (1 to:20) collect:[:t| t asString] ].

Dragging the scrollbar (or only dragging the window) is slow.

Ok, there are many entries, but now, change this method
(return nil instead of accessing the cache)

NewList>>#iconForItem:at:
^nil
    "^ iconCache
        at: anItem
        ifAbsentPut: [ (self model iconForItem: anItem at: anIndex) asMorph
]"

scrolling is smooth.

The problem is, accessing the iconCache calls #hash on anItem, which is an
IndexedEyeElement and this calls hash on its index AND on the value
(the string array).


The funny thing is, eyeinspector does not provide any icons at all.
Therefore, is there a way  to create the NewList and tell it to NEVER
ask for icons?

regards

Nicolai

Reply via email to