cordova-sqlite-evmax-build-free 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ # cordova-sqlite-evmax-build-free 0.1.2
4
+
5
+ - patch: improve large read performance on Android with larger internal result chunk size, with Android NDK JAR rebuilt with update from: https://github.com/brody4hire/android-sqlite-evmax-ndk-driver-free/tree/evmax-main-no-icu
6
+
7
+ # cordova-sqlite-evmax-build-free 0.1.1
8
+
9
+ - patch with libb64 decoding bugfix for Android ref: https://github.com/storesafe/cordova-sqlite-evmax-build-free/issues/11
10
+
3
11
  # cordova-sqlite-evmax-build-free 0.1.0
4
12
 
5
13
  ## cordova-sqlite-evmax-feat-android-db-location 0.0.3-dev
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-sqlite-evmax-build-free",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Cordova/PhoneGap sqlite storage - free evmax enterprise version with premium stability and performance improvements including workaround for super-large INSERT transactions & SELECT results on Android (version with external sqlite3 dependencies)",
5
5
  "cordova": {
6
6
  "id": "cordova-sqlite-evmax-build-free",
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
3
3
  xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  id="cordova-sqlite-evmax-build-free"
5
- version="0.1.0">
5
+ version="0.1.2">
6
6
 
7
7
  <name>Cordova sqlite storage - free evmax common version branch with premium stability performance improvements including workaround for super-large INSERT transactions and SELECT results on Android (with external sqlite3 dependencies)</name>
8
8
 
@@ -408,6 +408,7 @@ public class SQLitePlugin extends CordovaPlugin {
408
408
  void open(File dbFile) throws Exception {
409
409
  if (!isNativeLibLoaded) {
410
410
  System.loadLibrary("sqlc-evmax-ndk-driver");
411
+ EVNDKDriver.sqlc_evmax_set_result_chunk_cutoff_size(500 * 1000); // [evmax build - patch 0.1.x] internal cutoff adjusted for large result performance
411
412
  isNativeLibLoaded = true;
412
413
  }
413
414
 
@@ -9,11 +9,15 @@ For details, see http://sourceforge.net/projects/libb64
9
9
 
10
10
  int base64_decode_value(char value_in)
11
11
  {
12
- static const char decoding[] = {62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-2,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51};
13
- static const char decoding_size = sizeof(decoding);
14
- value_in -= 43;
15
- if (value_in < 0 || value_in >= decoding_size) return -1;
16
- return decoding[(int)value_in];
12
+ static const int decoding_map_base = 43;
13
+ static const int decoding_map[] = {
14
+ 62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-2,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51
15
+ };
16
+ static const int decoding_map_size = sizeof(decoding_map) / sizeof(decoding_map[0]);
17
+
18
+ const int map_value_in = (int)value_in - decoding_map_base;
19
+ if (map_value_in < 0 || map_value_in >= decoding_map_size) return -1;
20
+ return decoding_map[map_value_in];
17
21
  }
18
22
 
19
23
  void base64_init_decodestate(base64_decodestate* state_in)