You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Python** caches compiled bytecode in `__pycache__/` after the first run, similar to how Java's AOT cache works.
29
+
-**Java AOT** (JEP 483) snapshots ~3,300 pre-loaded classes from a training run into a `.aot` file, eliminating class loading overhead on subsequent runs.
30
+
-**JBang** compiles and caches internally but adds launcher overhead on every invocation.
31
+
-**Fat JAR** (`java -jar`) loads and links all classes from scratch each time.
16
32
17
33
## AOT Cache Setup
18
34
19
35
```bash
20
-
# One-time: build the cache (~21 MB, platform-specific)
The AOT cache uses Java 25 CDS (JEP 483) to pre-load classes from a training run. It is platform-specific (CPU arch + JDK version).
28
-
29
46
## Environment
30
47
31
48
|||
@@ -37,10 +54,6 @@ The AOT cache uses Java 25 CDS (JEP 483) to pre-load classes from a training run
37
54
|**Python**| 3.14.3 |
38
55
|**OS**| Darwin |
39
56
40
-
## Methodology
41
-
42
-
Each method was timed 6 times using `/usr/bin/time -p`. The first run is reported as "cold start" and the remaining 5 runs are averaged for "warm average". Between each run, `site/index.html` was reset via `git checkout` to ensure the generator runs fully each time.
0 commit comments