EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base
From: "Ben F." <[email protected]>
To: [email protected]
Date: Tue, 26 Oct 2010 20:41:25 -0000
On Dienstag, 26. Oktober 2010, Dirk Zimoch wrote:
> Performance test
>
> I wrote a test that creates 255 events (named 1 ... 255) and
> processes one of them 1 million times. Here are the results:
> mirror-3.14
>   2.389 seconds
> named-soft-events
>   3.150 seconds
> named-soft-events2
>   2.223 seconds
>
> (running on Ubuntu Linux in a vmWare box on Windows7 on my 1.3 GHz
> dual core laptop using 1 CPU core for vmWare)

To me these numbers suggest that your hashing O(1) solution may not be 
worth the added complexity and that doing string comparisons on small 
strings is not very expensive. Could you do a test with somewhat longer 
event names, around 20 to 30 characters long? What is the costs for the 
better performance of named-soft-events2 over named-soft-events in 
lines of code?

Cheers
Ben
-- 
"Never confuse what is natural with what is habitual."
                                   -- attributed to Mahatma Gandhi
https://code.launchpad.net/~dirk.zimoch/epics-base/named-soft-events/+merge/26190
Your team EPICS Core Developers is requested to review the proposed merge of lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base.


Replies:
Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base J. Lewis Muir
References:
Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base Dirk Zimoch

Navigate by Date:
Prev: Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base Dirk Zimoch
Next: Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base J. Lewis Muir
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base Dirk Zimoch
Next: Re: [Merge] lp:~dirk.zimoch/epics-base/named-soft-events into lp:epics-base J. Lewis Muir
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  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 ·