[Bug 1836732] [NEW] Ruler slow down when printing the value

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] [NEW] Ruler slow down when printing the value

Hliaire Fernandes
Administrator
Public bug reported:

When showValue argument is true, the block returned by method bellow
updates slowly.

DrGeoSketch>>float:at:from:to:name:showValue:

It seems related to the message #rename:

 mobile rename: ...


Same issue likely occurs with integer:at:from:to:name:showValue: method.

** Affects: drgeo
     Importance: Medium
         Status: New


** Tags: smalltalk-sketch

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  New

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions

Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] Re: Ruler slow down when printing the value

Hliaire Fernandes
Administrator
Modification as bellow, at the end improve a bit the performances:

^ isValueDisplay
   ifTrue:  [[|value |
        value := mobile mathItem abscissa * ( endValue - startValue) + startValue.
        mobile costume textMorph privateSetContents: (name, ' = ', (value printShowingDecimalPlaces: 2 )).
        value]]
   ifFalse: [[mobile mathItem abscissa * ( endValue - startValue) + startValue]]

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  New

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions

Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] Re: Ruler slow down when printing the value

Hliaire Fernandes
Administrator
In reply to this post by Hliaire Fernandes
Message #contentsClipped: in place of #privateSetContents: is more
appropriate.

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  New

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions

Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] Re: Ruler slow down when printing the value

Hliaire Fernandes
Administrator
In reply to this post by Hliaire Fernandes
Preliminary analysis with MessageTally shows that replacing with message
#contentsClipped: gives a x5 improvement in time of execution.

** Changed in: drgeo
       Status: New => In Progress

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  In Progress

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions

Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] Re: Ruler slow down when printing the value

Hliaire Fernandes
Administrator
In reply to this post by Hliaire Fernandes
** Changed in: drgeo
    Milestone: 19.06 => 19.09

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  In Progress

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions

Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] Re: Ruler slow down when printing the value

Hliaire Fernandes
Administrator
In reply to this post by Hliaire Fernandes
** Changed in: drgeo
       Status: In Progress => Fix Committed

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  Fix Committed

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions

Reply | Threaded
Open this post in threaded view
|

[Bug 1836732] Re: Ruler slow down when printing the value

Hliaire Fernandes
Administrator
In reply to this post by Hliaire Fernandes
** Changed in: drgeo
       Status: Fix Committed => Fix Released

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1836732

Title:
  Ruler slow down when printing the value

Status in Dr. Geo II:
  Fix Released

Bug description:
  When showValue argument is true, the block returned by method bellow
  updates slowly.

  DrGeoSketch>>float:at:from:to:name:showValue:

  It seems related to the message #rename:

   mobile rename: ...

 
  Same issue likely occurs with integer:at:from:to:name:showValue: method.

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1836732/+subscriptions