EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [WARNING: ATTACHMENT UNSCANNED]CSS 4.1: performance drop when using linking container and macros
From: "Kasemir, Kay" <[email protected]>
To: Ralph Lange <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 4 Mar 2016 19:32:47 +0000
> On Mar 4, 2016, at 1:17 PM, Ralph Lange <[email protected]> wrote:
> 
> On 04/03/2016 17:38, Kasemir, Kay wrote:
>> [...]
>> Meanwhile, I’m not sure what to suggest:
>> Properly structure your display files because it’s the right thing to do, and accept that for some time it’ll be slow loading?
>> Or use a monolithic display file because that loads faster?
>> Maybe only optimize for speed on displays that are opened/closed a lot.
> 
> Could this "flattening" be done programmatically, so that you could "optimize" displays as part of the build or deployment, while keeping the original structure and waiting for a better world to arrive?

In principle, this could be done as a standalone student project in for example python.
The task is basically to read an “.opi” XML file,
look for each ‘linkingContainer’,
replace that with a ‘groupingContainer’  that holds what’s in the linkingContainer’s “opi_file”,
and save the result as the optimized display.

Possible issues:
The linkingContainer can scale itself to fit the content, or scale the content to fit the container, or leave all at the original size.
The groupingContainer would only allow keeping all at the original size.

You may also keep your *.opi files behind an http:// link, and linking containers again refer to an http:// link to always get the ‘latest’ files.
So now you’d have to run the flattening process on the client side to get the flattened file de jour, then open that locally.

Thanks,
Kay

References:
CSS 4.1: performance drop when using linking container and macros Zumbruch, Peter Dr.
Re: [WARNING: ATTACHMENT UNSCANNED]CSS 4.1: performance drop when using linking container and macros Kasemir, Kay
Re: [WARNING: ATTACHMENT UNSCANNED]CSS 4.1: performance drop when using linking container and macros Ralph Lange

Navigate by Date:
Prev: EPICS Base 3.16.0.1 released Michael Davidsaver
Next: RE: EPICS Base 3.16.0.1 released Williams Jr., Ernest L.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [WARNING: ATTACHMENT UNSCANNED]CSS 4.1: performance drop when using linking container and macros Ralph Lange
Next: EPICS Base 3.16.0.1 released Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·