Slow World Menu opening

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

Slow World Menu opening

abergel
Hi!

When I open the world menu, the mouse cursor is intensively blinking, and opening the menu is _very slow_. This bugs has been around for a couple of weeks already. Am I the only one to see it?

I have checked the cause, and apparently the problem disappear by removing the use of “Cursor read showWhile:”. The following method:
-=-=-=-=-=-=-=-=-=
 ImageReadWriter>>formFromStream: aBinaryStream
        "Answer a ColorForm stored on the given stream.  closes the stream"
        | reader readerClass form |
        readerClass := self readerClassFromStream: aBinaryStream.
        reader := readerClass new on: aBinaryStream.
        Cursor read showWhile:
                [ form := reader nextImage.
                reader close ].
        ^ form
-=-=-=-=-=-=-=-=-=

May be rewritten as:
-=-=-=-=-=-=-=-=-=
 ImageReadWriter>>formFromStream: aBinaryStream
        "Answer a ColorForm stored on the given stream.  closes the stream"
        | reader readerClass form |
        readerClass := self readerClassFromStream: aBinaryStream.
        reader := readerClass new on: aBinaryStream.
        form := reader nextImage.
        reader close.
        ^ form
-=-=-=-=-=-=-=-=-=

However, changing the cursor has been around for quite a long time. It is strange that the slow menu is surfacing only now.

Any idea why?

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-users] Slow World Menu opening

Marcus Denker-4

> On 26 Aug 2015, at 02:57, Alexandre Bergel <[hidden email]> wrote:
>
> Hi!
>
> When I open the world menu, the mouse cursor is intensively blinking, and opening the menu is _very slow_. This bugs has been around for a couple of weeks already. Am I the only one to see it?
>

I saw it one day after coming back from ESUG. I added an issue tracker entry. Nicolai immediately commented that he did not see any slowdown.
I rebooted my machine, never saw the problem again.

But removing the #showWhile: is a good idea.

> I have checked the cause, and apparently the problem disappear by removing the use of “Cursor read showWhile:”. The following method:
> -=-=-=-=-=-=-=-=-=
> ImageReadWriter>>formFromStream: aBinaryStream
> "Answer a ColorForm stored on the given stream.  closes the stream"
> | reader readerClass form |
> readerClass := self readerClassFromStream: aBinaryStream.
> reader := readerClass new on: aBinaryStream.
> Cursor read showWhile:
> [ form := reader nextImage.
> reader close ].
> ^ form
> -=-=-=-=-=-=-=-=-=
>
> May be rewritten as:
> -=-=-=-=-=-=-=-=-=
> ImageReadWriter>>formFromStream: aBinaryStream
> "Answer a ColorForm stored on the given stream.  closes the stream"
> | reader readerClass form |
> readerClass := self readerClassFromStream: aBinaryStream.
> reader := readerClass new on: aBinaryStream.
> form := reader nextImage.
> reader close.
> ^ form
> -=-=-=-=-=-=-=-=-=
>
> However, changing the cursor has been around for quite a long time. It is strange that the slow menu is surfacing only now.
>
> Any idea why?
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev