1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,276
    Likes Received:
    364
    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,276
    Likes Received:
    364
    Trophy Points:
    83
    My pleasure
     

Share This Page