Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ZeroBone/ZeroList
Blazing fast and lightweight Java HashMap and LinkedList alternative with id's support.
https://github.com/ZeroBone/ZeroList
Last synced: about 1 month ago
JSON representation
Blazing fast and lightweight Java HashMap and LinkedList alternative with id's support.
- Host: GitHub
- URL: https://github.com/ZeroBone/ZeroList
- Owner: ZeroBone
- License: mit
- Created: 2018-08-13T16:53:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T13:56:50.000Z (about 6 years ago)
- Last Synced: 2024-08-02T05:13:03.771Z (4 months ago)
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - ZeroList - Blazing fast and lightweight Java HashMap and LinkedList alternative with id's support. (Java)
README
# ZeroList
ZeroList is a tiny (only ~200 lines of code) implementation of a class which works similar to Java's LinkedList, has less functionality, but is perfect in some situations, when LinkedList or HashMap is used.
# When do I use ZeroList?
ZeroList is perfect in situations, when you have a huge array and you need to add/remove elements from it fast.
It works like HashMap, but is based on the Java ArrayList and in some cases can be more efficient (mostly in terms of memory) as the overhead for every element is only 4 bytes for the id. In HashMap's, String are often used as keys, but in ZeroList, there is no way to use them as id's.