• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    Java
  • Created about 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GlueList is brand new list implementation which is faster than classic List implementations

GlueList ~ Fastest Java List implementation

  • GlueList is a brand new List implementation which is way faster than ArrayList and LinkedList.

  • This implementation inspired from ArrayList and LinkedList working mechanism.

  • Nodes holding data in arrays, in the beginning the world just like ArrayList ,inserts data into array one by one when there is no space for insertion to array new Node will be created and linked with the last Node.

  • The array which belongs to newly created node has half of the size of list , just like ArrayList.

  • In ArrayList when there is no space for it it creates new array with double of old size and inserts old data into new one.

  • Unlike ArrayList GlueList does it dynamically way with creating new node so old data does NOT have to be moved to another array.

  • You can think that GlueList is dynamic version of ArrayList.

Benchmark

  • Adding and removing operations much faster than ArrayList and LinkedList.
  • Searching operations nearly same with ArrayList and way better than LinkedList.
Adding(1M) Elements (5 Tests Avg.)

LinkedList: 174.8 milliseconds
ArrayList:  76.4 milliseconds
GlueList:   39.2 milliseconds

Adding(10M) Elements (5 Tests Avg.)

LinkedList: 8975.6 milliseconds
ArrayList:  4118.2 milliseconds
GlueList:   3320.1 milliseconds

Big-O Algorithm Complexity

  "m" number of created nodes.
  "n" size of node array.
  
  If you insert 10_000_000 record into List there will be just 36 nodes.
  
  Best Case
  Add O(1)
  Remove O(1)
  Search O(1)
  Access O(1)
  
  Worst Case
  Add O(n*m)
  Remove O(n*m)
  Search O(m)
  Access O(m)

Licence

  Copyright 2015 Ertuğrul Çetin
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

More Repositories

1

racing-game-cljs

A 3D racing game built with ClojureScript, React and ThreeJS
Clojure
243
star
2

ClojureNews

Clojure News Web Application - (Hacker News Clone)
Clojure
220
star
3

re-frame-flow

Graph based visualization tool for re-frame event chains
Clojure
147
star
4

jme-clj

A Clojure 3D Game Engine (Wrapper), Powered by jMonkeyEngine
Clojure
142
star
5

herfi

3D multiplayer game prototype written in Clojure and ClojureScript
Clojure
108
star
6

code3dworld

Learn programming in 3D World
Clojure
71
star
7

enion

Enion Online is an Epic PvP Battle game between Orcs and Humans. The game is written using Clojure and ClojureScript, and utilizes the PlayCanvas game engine.
Clojure
65
star
8

CommentRemover

Source Code Comment Remover For Java
Java
58
star
9

kezban

Utility library for Clojure and ClojureScript
Clojure
43
star
10

konva-cljs

A minimalistic ClojureScript interface to react-konva
Clojure
23
star
11

playcanvas-cljs-demo

PlayCanvas ClojureScript Demo App
JavaScript
20
star
12

overload-fn

Function overloading on type for Clojure
Clojure
19
star
13

lein-nsort

Leiningen plugin that checks that order of namespace declarations for Clojure and ClojureScript
Clojure
18
star
14

procedure.async

Async procedures for Clojure
Clojure
13
star
15

patika

Clojure routing library which is an abstraction over Liberator + Compojure
Clojure
13
star
16

babylon-cljs

3D character controller prototype project. It showcases how to integrate BabylonJS with ClojureScript.
Clojure
13
star
17

finite-cache

finite-cache is a Clojure caching library that allows you to limit the size of a cache object.
Clojure
12
star
18

asynctor

Minimal core.async inspector library for Clojure and ClojureScript
Clojure
10
star
19

datomic-backupper

Datomic Backupper
Clojure
4
star
20

segmentum

Segmentum is an unified customer data platform. Open source alternative of Segment.com
Clojure
3
star
21

spark-definitive-guide-examples

Spark: The Definitive Guide's Code in Clojure
Clojure
3
star
22

the-repl

Clojure REPL built with Java Swing GUI
Clojure
2
star
23

parse_struct

Parse C struct dumps in clojure
Clojure
1
star
24

random-clojure-fn

Chrome extension that generates random clojuredocs.org URLs to learn Clojure's standard library.
JavaScript
1
star