• Stars
    star
    186
  • Rank 207,316 (Top 5 %)
  • Language
    Java
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 11 years ago

Reviews

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

Repository Details

Offheap Java POJOs with guaranteed memory alignment

Slab

There is a good description here

tl;dr: Offheap Java Tuples that look like POJOs with guaranteed memory alignment.

Code Example

// Define your DataType
public interface GameEvent extends Cursor {
  public int getId();
  public void setId(int value);
  public long getStrength();
  public void setStrength(long value);
}

// Create an allocator for your DataType
Allocator<GameEvent> eventAllocator = Allocator.of(GameEvent.class);

// Allocate 100 off heap GameEvent instances - sequentially in memory
GameEvent event = eventAllocator.allocate(100);

// Move to the index of the instance that you want to read from or write to
event.move(1);

// set and get values like a normal POJO
event.setId(6);
assertEquals(6, event.getId());

More Repositories

1

java-8-lambdas-exercises

Exercises and Answers for Java 8 Lambdas book
Java
1,804
star
2

lambda-behave

A modern testing and behavioural specification framework for Java 8
Java
253
star
3

map-visualiser

Visualises the internal data structures of different Java Map implementations
Java
50
star
4

jspark

Ascii sparklines in Java.
Java
16
star
5

Monads-in-Java

An encoding of monads in the Java Language
Java
12
star
6

generics-examples

Java
10
star
7

java-final-benchmark

Some benchmarking of the impact of the final keyword
Java
10
star
8

Java-Collections-The-Force-Awakens

Java
5
star
9

Corporal

A statistical corpus analyser
Java
5
star
10

jfxtras-ensemble

An application that demonstrates the components in JFXtras.
Java
4
star
11

profiling-samples

Example applications which cause problems for profilers
Java
4
star
12

packed-objects-experiments

Java
4
star
13

answers.js

Easy to understand, online, statistics. Pick a topic, paste your data and go.
JavaScript
3
star
14

Java8-Date-and-Time-Examples

Java
3
star
15

quad-trees

simple scala quad tree implementation
Scala
3
star
16

mod-vertx-promises

Implementation of promises for vertx.
Java
3
star
17

design-graph

Java
3
star
18

auto-tweet

Automatically generates tweets in the style of a given user.
Scala
2
star
19

aeron-benchmark-utils

Scripts for benchmarking Aeron
Shell
2
star
20

JMX---VisualVM-Examples

Some examples for using the JMX monitor platform and writing a VisualVM Plugin
Java
2
star
21

interrupter

Tiny Bytecode rewriter to force interruption of Java programs.
Java
2
star
22

lambda-behave-examples

Examples for the Lambda Behave project
Java
2
star
23

CacheTests

Benchmarks for testing cache performance
Java
2
star
24

hashmap-benchmarks

Java
2
star
25

Coinifier

Java
1
star
26

Jisssea

Ncurses irc client
Java
1
star
27

lambda-behave-talk-examples

Java
1
star
28

Lambdas--Myths-and-Mistakes

A slide deck on what the LJC has learnt trying out lambda expressions in Java 8.
CSS
1
star
29

jmc-allocation-test

Java
1
star
30

slowcheck

Java wrappers for Scalacheck.
Java
1
star
31

msysgit-encoding-bug

Java
1
star
32

Generators-Playground

Trivial plaything api for generators
Java
1
star
33

lambda-behave-kata-answers

Java
1
star
34

mod-vertx-promises-examples

Examples using the promises api.
Java
1
star
35

Fibers

Java
1
star
36

given-when-then-examples

Java
1
star
37

Compiler-Question

A possible Javac Bug
Java
1
star
38

all-of-statistics

1
star
39

Trello-Reporter

Email yourself upcoming cards from your trello boards
Python
1
star
40

Stripper

Strips out specified methods from a class directory in order to work out potential API sizes.
Java
1
star
41

Groovy-Benchmarks

Some benchmarks around the groovy programming language
Groovy
1
star
42

description-card-gen

Information card generation for an articulate-style game called description
Java
1
star