EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: data access structures, strings
From: Kay-Uwe Kasemir <[email protected]>
To: [email protected]
Date: Tue, 27 Sep 2005 15:18:13 -0400
Hi:
On Sep 27, 2005, at 14:47 , Jeff Hill wrote:
PropertyCatalog currently has "operator =" and "operator ==".

O Do they meet the conventional wisdom test? That is, is their purpose
roughly equivalent to the purpose of these operators with primitive types?

The '=' is supposed to be a simple assignment.
Something that can usually be done in one machine-code instruction.
Maybe a memcpy or double-to-int conversion.
Not invocations of traverse(), looking for matching properties
via find(), converting types, ...
Such a rather complex mapping exceeds what I'd expect
behind a simple '='.

I think "The C++ Programming language" has a discussion
for iterators, operator ++.
If it's a constant-speed iteration, like an in-memory linked list:
OK.
Not OK for remote database access where one '++' returns immediately,
the next one takes a minute.


-Kay

Replies:
RE: data access structures, strings Jeff Hill
References:
RE: data access structures, strings Jeff Hill

Navigate by Date:
Prev: EPICS Meeting agenda Dalesio, Leo `Bob`
Next: Re: data access structures, strings Marty Kraimer
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: data access structures, strings Jeff Hill
Next: RE: data access structures, strings Jeff Hill
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·