|
1 | | -# The Philosophy of FastXXX |
| 1 | +# The Philosophy of FastImage 💡 |
2 | 2 |
|
3 | 3 | > [!IMPORTANT] |
4 | 4 | > **"Keine Kopien. Niemals. Kritischer JNI-Pfad. Native-First Performance."** |
5 | 5 |
|
6 | | -FastXXX is built on the principle that modern Java applications require **native-first** acceleration for performance-critical operations that the standard JVM APIs don't fully optimize. |
| 6 | +FastImage is built on the conviction that 2D image processing, UI blurring, and computer vision pipelines in Java must never be crippled by JVM heap allocations, garbage collection stalls, or slow scalar rasterizers. |
7 | 7 |
|
8 | 8 | ## Core Tenets |
9 | 9 |
|
10 | | -1. **Native-First Execution** |
11 | | - Bypass standard Java layers to reach the physical limits of the hardware using hand-tuned C++ and SIMD intrinsics. |
| 10 | +1. **Native-First SIMD Execution** |
| 11 | + Bypass standard Java2D and `BufferedImage` software loops to reach physical CPU limits using hand-tuned C++ with 256-bit AVX2 vector intrinsics. |
12 | 12 |
|
13 | | -2. **Zero-Copy JNI Architecture** |
14 | | - Minimize JNI transition costs by using direct memory access patterns and avoiding implicit memory copies between the JVM and the native layer. |
| 13 | +2. **Off-Heap Zero-GC Architecture** |
| 14 | + Maintain pixel buffers strictly in native unmanaged memory. Zero JVM Garbage Collection pauses even when processing uncompressed 1080p and 4K frames at 60+ FPS. |
15 | 15 |
|
16 | | -3. **Deterministic Latency** |
17 | | - Eliminate variance caused by JIT warm-up or garbage collection stalls in critical hot-paths. |
| 16 | +3. **Zero-Copy Foreign Buffer Interop** |
| 17 | + Seamlessly wrap raw 64-bit pointers, `FastPointer` handles, and `DirectByteBuffer` allocations from sibling modules (`FastScreen`, `FastCamera`, `FastRobot`) without duplicating memory. |
18 | 18 |
|
19 | | -4. **Hardware-Aware Optimization** |
20 | | - Leverage modern CPU features (AVX, SSE, NEON) to process data at hardware-native speeds. |
| 19 | +4. **Hardware-Grade Filtering Algorithms** |
| 20 | + Provide modern GPU-grade blur (Dual-Kawase) and box area-average downsampling in native CPU kernels for high-quality UI overlays and downscaling without aliasing artifacts. |
21 | 21 |
|
22 | | -5. **Blueprint Consistency** |
23 | | - As part of the **FastJava** ecosystem, FastXXX adheres to a standardized architecture: |
24 | | - * **Native Backend**: Direct C++ implementation. |
25 | | - * **Unified Loading**: Powered by `FastCore`. |
26 | | - * **Premium Quality**: Built for high-performance systems and autonomous agents. |
| 22 | +5. **FastJava Blueprint Consistency** |
| 23 | + As part of the **FastJava** ecosystem: |
| 24 | + * **Native Backend**: Direct C++ implementation with AVX2 optimizations. |
| 25 | + * **Unified Loading**: Powered by `FastCore` for zero-dependency native deployment. |
| 26 | + * **Production Quality**: High-performance, clean chaining API, and thorough JMH profiling. |
27 | 27 |
|
28 | 28 | --- |
29 | | -**⚡ FastXXX — Powering the next generation of Native Java.** |
| 29 | +**⚡ FastImage — Powering the next generation of Native Java.** |
0 commit comments