[squeak-dev] How should one implement a custom window color for a custom window?

Chris Muller asqueaker at gmail.com
Tue Sep 19 03:04:10 UTC 2017


When I first encountered the DNU implementation, I also thought it
would be a performance issue, but then I ran some benchmarks and found
it actually isn't.

On Mon, Sep 18, 2017 at 6:50 PM, tim Rowledge <tim at rowledge.org> wrote:
> If performance is an issue (as appears to be the case from the comment in #getViaSuperclasses:) I’d anticipate that it might be worth explicitly implementing frequently used messages such as borderColor, customWindowColor etc along the lines of
> borderColor
>   ^[self get: scope top class->#borderColor] ensure:[scope pop]
> … in order to avoid the time cost of the whole dNU: dance.
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: RCR: Rewind Card Reader
>
>
>


More information about the Squeak-dev mailing list