bytedeco/javacpp

Unsafe get, put and array access

Open

#156 opened on Jan 2, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (620 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Due to unsafe methods getting intensified it is faster than native. So perhaps it might be an idea to replace where appropriate with Unsafe use.

Also using Unsafe to access Java arrays is faster since there not no bound checking, memory fence and type checking.

Some native methods may be replaceable with pure Java with Unsafe.

Contributor guide