Issue 501 in moose-technology: Cache independence

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

Issue 501 in moose-technology: Cache independence

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 501 by [hidden email]: Cache independence
http://code.google.com/p/moose-technology/issues/detail?id=501

The core of Mondrian is not independent of the cache implementation. The  
logic of Mondrian rely on the cache to implement its semantics. This is  
obviously wrong.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
bounds
        "Answer the bounds of the receiver."
        "the bounds is has an absolute origin"
        "Note that the bounds computed above, may have (and it is likely to) a  
different origin. The reason is that the layout is in charge to position  
the nodes properly"
        | basicBounds |

        boundsCache ifNotNil: [ ^ boundsCache ].

        "We check if  the shape if present"
        self shapeBoundsAt: self shape ifPresent: [ :b | ^ boundsCache := b ].

        basicBounds := self shape computeBoundsFor: self.
        self shapeBoundsAt: self shape put: basicBounds.
        ^ boundsCache := basicBounds
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
translateAbsoluteCacheBy: aPoint
        absoluteBoundsCache ifNil: [ ^ self ].
        absoluteBoundsCache := absoluteBoundsCache translateBy: aPoint
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Thanks to Santiago Vidal for pointing this out!

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

Re: Issue 501 in moose-technology: Cache independence

moose-technology

Comment #1 on issue 501 by [hidden email]: Cache independence
http://code.google.com/p/moose-technology/issues/detail?id=501

I guess this won't be tackled anymore.

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

Re: Issue 501 in moose-technology: Cache independence

moose-technology
Updates:
        Status: WontFix

Comment #2 on issue 501 by [hidden email]: Cache independence
http://code.google.com/p/moose-technology/issues/detail?id=501

(No comment was entered for this change.)

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