1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Structure or Arrays

Discussion in 'C' started by coderzone, Jul 18, 2005.

  1. coderzone

    coderzone Super Moderator

    Joined:
    Jul 25, 2004
    Messages:
    734
    Likes Received:
    37
    Trophy Points:
    0
    Hello all,

    I'm currently optimising an application for sheer speed. My application contains alot of structures and it got me thinking whether arrays are any faster?

    Thank you in advance.
     
    Last edited: Jul 18, 2005
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    I have tried to write a small program to benchmark it but the output was almost equal to 0.00000 for both the cases and sometimes structure would come faster by a very very minute amount.
     
  3. coderzone

    coderzone Super Moderator

    Joined:
    Jul 25, 2004
    Messages:
    734
    Likes Received:
    37
    Trophy Points:
    0
    Thanks and I also got the similar results.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    My pleasure
     

Share This Page