New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: Library overhead #25

ScottPierce opened this Issue Jan 30, 2017 · 3 comments


None yet
5 participants
Copy link

ScottPierce commented Jan 30, 2017

It'd be useful to have some data in the FAQ about the databases overhead

  • size
  • method count
  • how much can pro-guard reduce

This comment has been minimized.

Copy link

Miha-x64 commented Jan 30, 2017

...including size of JNI libs, which is cannot be reduced by ProGuard.
(Presentations says ObjectBox is in C/C++. For instance, many people avoiding Realm because it has large JNI libraries.)


This comment has been minimized.

Copy link

FabianTerhorst commented Jan 30, 2017

Arch ObjectBox-Size Realm-Size
x86 1,3MB 3,2MB
x86_64 - 3,1MB
mips - 3,6MB
arm64-v8a 1,1MB 2,8MB
armeabi-v7a 838,5KB 1,8MB

@greenrobot greenrobot added the web site label Jan 30, 2017

greenrobot added a commit that referenced this issue Sep 4, 2017

Need to retain Entity annotation for ProGuard. #25
- With RetentionPolicy.SOURCE the annotation is already stripped by the compiler, before ProGuard gets a chance to transform the byte code. So set at least RetentionPolicy.CLASS.

This comment has been minimized.

Copy link

greenrobot-team commented Dec 3, 2018

Some more recent values (using 2.2.0) sourced using Android Studio APK Analyzer with the release build of our basic example.

io.objectbox package stats for default Android setup (no shrinking/optimization):

Defined Methods Referenced Methods Size
1217 1263 124 KB

Size of native libraries bundled with objectbox-android:

Arch Size
x86 483 KB
x86_64 456 KB
arm64-v8a 419 KB
armeabi-v7a 355 KB


@ScottPierce ScottPierce closed this Dec 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment