Skip to content

Commit f428901

Browse files
committed
docs: Add section on build performance and Gradle cache limitations to README
1 parent 7c7cdef commit f428901

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,13 @@ The generated `KneRuntime` uses a three-tier loading strategy:
412412
2. **JAR extraction** — extracts from `kne/native/{os}-{arch}/` in the classpath to a persistent cache (`~/.cache/kne/`)
413413
3. **Loader lookup** — fallback for GraalVM native-image (native lib beside the executable)
414414

415+
### Build performance & Gradle Cache
416+
417+
Currently, the bridge generation task is marked as `@DisableCachingByDefault` because the Kotlin PSI source analysis is not yet fully cacheable.
418+
419+
- **Status**: The plugin performs a full re-scan and code generation on every build if sources change.
420+
- **Future work**: Implement proper Gradle build caching and incremental compilation by mapping source files to specific IR outputs, allowing faster builds for large projects.
421+
415422
### GraalVM native-image support
416423

417424
The plugin auto-generates GraalVM reachability metadata under `META-INF/native-image/kne/{libName}/`:

0 commit comments

Comments
 (0)