Merge lp:~makyo/juju-gui/replace-service-module into lp:juju-gui/experimental
| Status: | Merged |
|---|---|
| Merged at revision: | 236 |
| Proposed branch: | lp:~makyo/juju-gui/replace-service-module |
| Merge into: | lp:juju-gui/experimental |
| Diff against target: |
839 lines (+323/-261) 3 files modified
app/assets/svgs/service_health_mask.svg (+196/-128) app/assets/svgs/service_module.svg (+124/-131) app/views/environment.js (+3/-2) |
| To merge this branch: | bzr merge lp:~makyo/juju-gui/replace-service-module |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Juju GUI Hackers | 2012-11-05 | Pending | |
|
Review via email:
|
|||
Description of the Change
Lightweight assets/improve FF performance
Some lighter weight assets for service modules were implemented, via Matt C. Additionally, profiling showed that a lot of slowness for FireFox was caused by FF internals being slow (namely <node>.
| Madison Scott-Clary (makyo) wrote : | # |
| Gary Poster (gary) wrote : | # |
| Benjamin Saller (bcsaller) wrote : | # |
The impl looks fine but having tested under FF the new asset doesn't
seem to perform any better. This is after manually doing make
appcache-force so I'm pretty sure its the current asset.
I'm not sure we should land this as it doesn't yield the benefit we
hoped for.
| Gary Poster (gary) wrote : | # |
Rejected per offline discussion, driven by Ben's comment above.
| Madison Scott-Clary (makyo) wrote : | # |
Please take a look.
| Benjamin Saller (bcsaller) wrote : | # |
This looks good to me, I had a suggestion to test below, but either way
on that one.
This doesn't fix the speed issues in FF for me, but it does improve the
situation.
Thanks.
https:/
File app/views/
https:/
app/views/
I know we talked about adding a method like this, really happy to see
you added it, thanks.
https:/
app/views/
{width: 0}).width + 10;
Can we specify it as d.display_
it, but em should be font size relative if it works.
| Gary Poster (gary) wrote : | # |
This makes FF usable for me both on my relatively new desktop and my 3+
year old laptop. Amazing! Thank you.
I have a few trivial comments/
Gary
https:/
File app/modules.js (right):
https:/
app/modules.js:14: 'fullpath': '/juju-
I guess this is good for thiago's branch, which will be minifying
everything anyway, so that the debug story is nice. Is that why you did
it?
https:/
File app/views/
https:/
app/views/
{width: 0}).width + 10;
I'm -1 on checking in commented-out code to trunk; if you add an
explanatory comment as to why you have left this in but commented out, I
might feel better about it. :-)
| Madison Scott-Clary (makyo) wrote : | # |
Thanks
https:/
File app/modules.js (right):
https:/
app/modules.js:14: 'fullpath': '/juju-
Left over from profiling; back to minified.
On 2012/11/09 21:02:40, gary.poster wrote:
> I guess this is good for thiago's branch, which will be minifying
everything
> anyway, so that the debug story is nice. Is that why you did it?
https:/
File app/views/
https:/
app/views/
{width: 0}).width + 10;
Unfortunately not, as we use this attribute on line 649, expecting it to
be pixels, as we don't know how wide an em is.
On 2012/11/09 18:38:31, benjamin.saller wrote:
> Can we specify it as d.display_
it, but em
> should be font size relative if it works.
https:/
app/views/
{width: 0}).width + 10;
Ooops! Done!
On 2012/11/09 21:02:40, gary.poster wrote:
> I'm -1 on checking in commented-out code to trunk; if you add an
explanatory
> comment as to why you have left this in but commented out, I might
feel better
> about it. :-)
| Madison Scott-Clary (makyo) wrote : | # |
*** Submitted:
Lightweight assets/improve FF performance
Some lighter weight assets for service modules were implemented, via
Matt C. Additionally, profiling showed that a lot of slowness for
FireFox was caused by FF internals being slow (namely
<node>.
those being slow, we can reduce the number of times they're used. This
is done by modifying attributes on only relevant relation lines when a
service is dragged (rather than redrawing or modifying all lines). This
results in fewer calls to both of those internals, and speeds up
animation in FireFox.
R=gary.poster, benjamin.saller
CC=
https:/


Reviewers: mp+132938_ code.launchpad. net,
Message:
Please take a look.
Description:
Implement lightweight service module assets.
https:/ /code.launchpad .net/~makyo/ juju-gui/ replace- service- module/ +merge/ 132938
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6826057/
Affected files: svgs/service_ health_ mask.svg svgs/service_ module. svg environment. js
A [revision details]
M app/assets/
M app/assets/
M app/views/