New Version
- Fixed: Bugs with Queues starting with the wrong size - Fixed: ArrayGrowth for Queues was +1 instead of +50% - Added: Benchmarks with java and FastUtil
This commit is contained in:
1 parent
f32624d131
commit
78dfa286b0
6 files changed
+13
-8
No files matched your search
+2
-2
@@ -114,8 +114,8 @@ public class ARRAY_FIFO_QUEUE KEY_GENERIC_TYPE extends ABSTRACT_PRIORITY_QUEUE K
|
||||
|
||||
@Override
|
||||
public void enqueue(KEY_TYPE e) {
|
||||
array[last] = e;
|
||||
last = ++last % array.length;
|
||||
array[last++] = e;
|
||||
if(last == array.length) last = 0;
|
||||
if(last == first) expand();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user