Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

andrestubbe/FastString

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastString 0.1.0 [ALPHA] — High-performance SIMD UTF-8 String for Java

Status License: MIT Java Platform JitPack


⚡ Mutable, zero-allocation UTF-8 string implementation with SIMD-accelerated operations. Bypasses Java String overhead for elite performance.

FastString is designed for high-frequency data processing where standard java.lang.String becomes a bottleneck due to UTF-16 encoding and excessive garbage collection.


FastKeyboard Showcase


Table of Contents


Quick Start

import faststring.FastString;

public class Demo {
    public static void main(String[] args) {
        // FastString works directly with UTF-8 bytes
        FastString s = new FastString("High Performance!");
        s.toUpperCase(); // Native SIMD accelerated (AVX2)
        System.out.println(s);
    }
}

Features

  • ⚡ UTF-8 Native: No conversion overhead between network/file bytes and the JVM.
  • 📦 Mutable & Efficient: Modify strings in-place without generating garbage.
  • 🚀 SIMD Accelerated: AVX2/SSE optimized for searching, case-conversion, and validation.
  • 🛠️ Zero Allocation: Designed for 120 FPS UI and high-throughput backend services.

Installation

Option 1: Maven (Recommended)

Add the JitPack repository and the dependencies to your pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependencies>
   <dependency>
       <groupId>com.github.andrestubbe</groupId>
       <artifactId>faststring</artifactId>
       <version>0.1.0</version>
   </dependency>
   <dependency>
       <groupId>com.github.andrestubbe</groupId>
       <artifactId>fastcore</artifactId>
       <version>0.1.0</version>
   </dependency>
</dependencies>

Option 2: Gradle (via JitPack)

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.andrestubbe:faststring:0.1.0'
    implementation 'com.github.andrestubbe:fastcore:0.1.0'
}

Option 3: Direct Download (No Build Tool)

Download the latest JARs directly to add them to your classpath:

  1. 📦 **faststring-0.1.0.jar ** (The Core Library)
  2. ⚙️ fastcore-0.1.0.jar ( The Mandatory Native Loader)

License

MIT License — See LICENSE file for details.


Related Projects


Part of the FastJava EcosystemMaking the JVM faster. Small package. Maximum speed. Zero bloat. 🚀📋

About

High-performance UTF-8 string operations for Java. 10-100× faster than Java String. Zero-copy, SIMD-accelerated.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.