Any implementation of an Unrolled Linked List in C#?

情到浓时终转凉″ 提交于 2019-12-24 01:08:39

问题


I'm interested in using an "unrolled linked list" in my C# application.

Is anyone aware of a stable implementation, especially one that will allow me to configure how much padding to allocate per array?


回答1:


According to the 2nd comment in your own link, such a list should be implemented in BigList in the PowerCollections library. It's open source, so you could have a look at the code and see if it allows for your scenario, or if it can be adapted to fit your needs easily.

Other than that, I am now aware of any .NET implementations you could use.




回答2:


Here you can find a working implementation written in Java. It can be a good starting point to write a new implementation in C#. I have tested this class and it is many times faster than the standard LinkedList class in Java.



来源:https://stackoverflow.com/questions/4718311/any-implementation-of-an-unrolled-linked-list-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!