Commit e5b510c
committed
Replace Zig cross-compilation with native library artifact
Commit 288bb09 introduced Zig cross-compilation of LMDB (#217).
Benchmarking as part of #262 revealed the cross-compiled libraries are
significantly slower than LMDB compiled with native toolchains. Using
the methodology from e634b3f:
Library Source Score (ms) Delta vs Baseline
--------------------------------------------------------------
System Arch Linux (GCC) 45.00 Baseline
Fetched Arch Linux (GCC) 45.03 +0.05%
Zig unoptimized (debug) 59.01 +31.12%
Zig optimized (-O2 stripped) 58.82 +30.70%
This removes Zig cross-compilation and adopts the org.lmdbjava:native
artifact, which packages LMDB libraries compiled with native toolchains
from distribution package managers. This simplifies building as Zig
installation and cross-compile.sh are no longer required.1 parent e634b3f commit e5b510c
File tree
7 files changed
+16
-103
lines changed- .github/workflows
- src
- main
- java/org/lmdbjava
- resources/org/lmdbjava
- test/java/org/lmdbjava
7 files changed
+16
-103
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 25 | | |
32 | 26 | | |
33 | 27 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 28 | | |
43 | 29 | | |
44 | 30 | | |
| |||
65 | 51 | | |
66 | 52 | | |
67 | 53 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 54 | | |
75 | 55 | | |
76 | 56 | | |
| |||
104 | 84 | | |
105 | 85 | | |
106 | 86 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 87 | | |
114 | 88 | | |
115 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
407 | 413 | | |
408 | 414 | | |
409 | 415 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
424 | 419 | | |
425 | 420 | | |
426 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
0 commit comments