Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with:

Dennis Clark

Member since Aug 3, 2009

Recent Blog Comments By Dennis Clark

  • Java's AtomicInteger vs. ColdFusion Named-Locking For Incrementing Values

    Posted on Jan 6, 2010 at 11:19 PM

    WOW! @Ben, I'm honored that you thought my comments worthy enough to inspire your own investigation of AtomicInteger and its performance. You, in turn, have inspired me to take your experiment just a little bit further. You can read about what I did and the discoveries I made back on my own blog... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Jan 5, 2010 at 10:38 AM

    @Ben, Yes, an exclusive named lock around the incrementor would prevent the proxy from assigning duplicate IDs. The advantage of a java.util.concurrent.atomic.AtomicInteger object is that it avoids the overhead of CF-level locking and is optimized to be as short as possible. It would be interesting... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Dec 16, 2009 at 3:08 PM

    @Roman, You're right in that in this case it's not a big problem: it's actually a very tiny problem. However a small problem can sometimes be worse than a big problem. For me, the chances are good that if I left such a race condition in my code, my application would work fine for a year before it ... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Dec 16, 2009 at 1:37 PM

    @Roman, The critical section of this race condition is so small that it would be very difficult to demonstrate empirically. It would likely involve creating a very heavy load on the server and a large number of threads to guarantee a hit on the race condition during a test. The above doesn't mean ... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Dec 16, 2009 at 12:04 AM

    @Raymond, The array="#this.getCacheIDs()#" you pointed out is thread-safe because getCacheIDs() is _NOT_ a property getter, but rather a method that returns a new array on each call. @Ben, I took a look at your code and the only race condition I could find was the ++this.autoIncrementer in the ne... read more »

  • Caching ColdFusion Component Methods Has Negligible Performance Improvements

    Posted on Oct 29, 2009 at 12:15 AM

    Awesome find @JAlpino! You've confirmed my theory about shared method instances. I knew that each CFC method is translated into a separate Java class, but I did not know that they were translated into inner classes with a class representing the component. I learned something new today! I know that ... read more »

  • Caching ColdFusion Component Methods Has Negligible Performance Improvements

    Posted on Oct 28, 2009 at 4:19 PM

    @Ben, Nice work there! That was a good idea to try to find some unique ID of the method object at the Java level. You are correct in that equal values returned by hashCode() for two object references does not guarantee they are the same object, but it does make it very likely. The official Sun jav... read more »

  • Caching ColdFusion Component Methods Has Negligible Performance Improvements

    Posted on Oct 28, 2009 at 12:46 PM

    Ben, I believe you are wrong about ColdFusion not sharing method definitions. Methods and UDFs in ColdFusion are immutable so I see no reason for a CFML engine to not share method definitions across CFC instances. I suspect the biggest difference that sharing method definitions would make is not in... read more »

  • Win A FREE Ticket To CFUNITED 2009

    Posted on Aug 3, 2009 at 12:08 PM

    I would like to see the "Thinking Outside of the CF Box" presentation by John Paul Ashenfelter. I have never seen John Paul in person but I did download his presentation on testing a couple of years ago and it completely changed the way I view testing for ColdFusion development. I have recently no... read more »