This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void setString_Benchmark() { | |
final int TEST_COUNT = 100000; | |
String[] strings = new String[TEST_COUNT]; | |
for (int i = 0; i < TEST_COUNT; i++) { | |
strings[i] = UUID.randomUUID().toString(); | |
} | |
realm.beginTransaction(); | |
long startTime = System.nanoTime(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package apptest.realm.io.androidmtest; | |
import android.Manifest; | |
import android.content.pm.PackageManager; | |
import android.os.Bundle; | |
import android.os.Environment; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.design.widget.Snackbar; | |
import android.support.v4.app.ActivityCompat; | |
import android.support.v4.content.ContextCompat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gst/gst.h> | |
#include <gst/app/gstappsrc.h> | |
static GMainLoop *loop; | |
static void | |
cb_need_data (GstAppSrc *appsrc, | |
guint unused_size, | |
gpointer user_data) | |
{ |
NewerOlder