Grand Central Dispatch Performance Issue

Discussion in 'Ruby' started by Chris Mowforth, Oct 5, 2009.

  1. Hey all,

    I've been playing around with Grand Central dispatch and out of
    curiosity trying to see it it's of any use in getting native MRI
    extensions to execute more quickly.

    In this example I've just created a simple 'Primes' class with a
    #generate method which returns the last prime number before 500,000.

    Right now, however, I'm getting consistently lower times with the plain
    old prime function (for low cut-off values using dispatch_apply, grand
    central took almost twice as long).

    Has anybody else had better luck than me with this sort of thing?

    Thanks
    Chris

    Attachments:
    http://www.ruby-forum.com/attachment/4105/primes.c

    --
    Posted via http://www.ruby-forum.com/.
     
    Chris Mowforth, Oct 5, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Betty

    ain't java grand ?

    Betty, May 24, 2005, in forum: Java
    Replies:
    4
    Views:
    419
    Joona I Palaste
    May 26, 2005
  2. Martin Magnusson

    Getting properties from grand-parent

    Martin Magnusson, Jun 10, 2005, in forum: HTML
    Replies:
    0
    Views:
    784
    Martin Magnusson
    Jun 10, 2005
  3. Replies:
    2
    Views:
    353
  4. bryanbrun
    Replies:
    0
    Views:
    301
    bryanbrun
    Dec 29, 2006
  5. javawizard
    Replies:
    2
    Views:
    375
    Raymond Schmit
    Jan 18, 2009
Loading...

Share This Page