[Date Prev][Date Next]
LMDB memory location on Android
- To: firstname.lastname@example.org
- Subject: LMDB memory location on Android
- From: Kristoffer Sjögren <email@example.com>
- Date: Fri, 30 Jan 2015 15:23:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5mc/+n+BJuZS62u1DTeQm6cdLfvZ4CyIiVe5KHInI5o=; b=fFcucWjaNRezbVpNUZ/mO07zxUoyDUBhUqg3m5O5qEsuV9tutgfiVwu6P+9zwo+NVn q8t4s6gkG+64wx60fk8yU1lJEdbsH1cfBFYjnaKcjPkrbK8m6If3JNT29t0mwf+59bbK N2nEcmV3qLcxPnL+PSXfwbf3FMqT5H9PKgqvA+d194RKfxefyLNRFI07pzs/pFfH6T3f 0Vohvlwhx7nBRJTMQYMSbFMilTbxP+7fDX+O2VY8qlXCKKvJvfP52qoX+HgtSnc7POfx 77l9rErdQfSlqHep2hwKo1Bfxpe5PNNHbJDJwXbFxvaNjZLhWxcDzkt1iVw3gFdUzkzu EETg==
LMDB JNI is a Java wrapper ontop of LMDB which runs on Linux, OSX, Windows and Android (arm-linux-androideabi-4.9 x86_64).
At the moment the Android implementation rely on buffer copies and we're trying to implement zero copy using memory addresses provided by LMDB.
Zero copy is already working on Linux, OSX and Windows but is not as straight forward on Android since the memory addresses are handled differently?
We try to use the memory address of a direct ByteBuffer and hand it over to LMDB (exactly how the PC version works) but something is wrong. The full discussion and code on this can be found here.
I would greatly appreciate any tips on what might be wrong.