[Bug 1495205] Re: Optimize compare of item in the factory

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 1495205] Re: Optimize compare of item in the factory

Hilaire Fernandes
Administrator
** 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/1495205

Title:
  Optimize compare of item in the factory

Status in Dr. Geo II:
  Fix Released

Bug description:
  Here another x25 boost using hash value to compare mathItem:

  DrGFactory>>indexOf: anItem
  ^ anItem
  ifNil: [0]
  ifNotNil: [
  self pool findFirst: [ :each |
  each hash = anItem hash ]
  "self pool indexOf: anItem"]

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1495205/+subscriptions
Was this message helpful?
Tell us!