Menu

loki allocator performance problems?

2008-03-26
2013-04-08
  • Nobody/Anonymous

    Hello all,

    I have an application that receives a real-time data feed that receives like 500k msgs/second.
    The objects I need to allocate/deallocate are very small (<64 bytes).

    Unfortuantly with loki the speed decrease with ~10% percent compared with the standard allocator and with 17% compared with Hoard allocator.

     
    • Richard Sposato

      Richard Sposato - 2008-03-27

      Hi,

      The Loki allocator comes with a test project for doing benchmark comparisons against other allocators.  You could run the tests against the standard allocator.  You could also modify those tests to compare Loki to Hoard.  If you do, please post the results here.

      The Deallocate functions remain the slower parts of the allocator - especially the one without the size parameter.  The size parameter allows it to quickly find which fixed-size allocator owns the block.  You may want to check your code to see which Deallocate function you call.  If you know the size of the block and can call the one with the size parameter, I'd recommend doing so.

      Cheers,

      Rich

       

Log in to post a comment.