How do I use Loki's small object allocator?

后端 未结 2 1926
北海茫月
北海茫月 2021-01-15 10:28

I need to use Loki\'s small object allocator but I am very confused as to how it works. I\'ve read the documentation and lots of forums but it doesnt make sense: some of the

相关标签:
2条回答
  • 2021-01-15 10:52

    Ok, best I got was to make Loki's Small Object Allocator compliant with the STL. To do this I just created a wrapper class for the SmallObjAllocator class in Loki according to http://www.codeproject.com/kb/cpp/allocator.aspx?fid=16541&df=90&mpp=25&sort=Position&tid=1677312

    0 讨论(0)
  • 2021-01-15 11:00

    If you visit the Loki project,you might don't want to use SmallObject.It runs slower than default new.I don't know why,but some guys talked here: http://sourceforge.net/projects/loki-lib/forums/forum/93009/topic/3828398

    0 讨论(0)
提交回复
热议问题