Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. D
  3. fast.json

fast.json

D

A D library providing the fastest possible implementations of common routines like JSON parsing, string splitting, and C interop.

GitHubGitHub
111 stars6 forks0 contributors

What is fast.json?

fast is a D library that provides highly optimized implementations of common routines such as JSON parsing, string splitting, and C interop. It focuses on achieving the fastest possible performance by avoiding garbage collector allocations, skipping input validation, and using SSE instructions and stack allocations. The library can deliver up to a 20-fold speed increase in some scenarios compared to standard implementations.

Target Audience

D developers working on performance-critical applications, systems programming, or low-level tasks where maximum throughput and minimal overhead are essential.

Value Proposition

Developers choose fast for its uncompromising focus on speed, offering GC-free operations, SSE acceleration, and direct memory access that outperform standard library routines. It provides a lightweight, high-performance alternative for specific tasks without the bloat of validation or allocation overhead.

Overview

A library for D that aims to provide the fastest possible implementation of some every day routines.

Use Cases

Best For

  • Parsing large JSON files into D structs with minimal latency
  • Splitting strings in performance-sensitive path processing
  • Interfacing with Windows or Linux C APIs efficiently
  • Writing high-throughput data processing pipelines in D
  • Benchmarking and optimizing critical code sections
  • Systems programming where GC pauses are unacceptable

Not Ideal For

  • Projects requiring robust input validation and error handling for untrusted data
  • Teams relying heavily on D's garbage collector for automatic memory management simplicity
  • Applications prioritizing memory safety and security over raw speed
  • Developers needing a general-purpose library with broad functionality beyond optimized routines

Pros & Cons

Pros

Blazing Fast JSON Parsing

Directly reads JSON files into user-defined structs without intermediate allocations, reducing overhead and achieving up to 20x speed improvements in benchmarks.

SSE-Optimized String Splitting

Uses SSE3 instructions to split strings around delimiters with minimal overhead, ideal for high-throughput path processing tasks.

Efficient C Interop Utilities

Provides charPtr and wcharPtr helpers for seamless and fast calling of Windows and Linux C APIs, avoiding GC allocations.

GC-Free Performance Predictability

Functions avoid garbage collector allocations entirely, ensuring consistent performance without GC pauses for critical code sections.

Cons

Lacks Input Validation

Skips validation to boost speed, which can lead to crashes or security vulnerabilities when processing malformed or untrusted inputs.

Narrow, Targeted Scope

Focuses only on a few optimized routines like JSON parsing and string splitting, so it's not a drop-in replacement for D's standard library.

Potential Unsafe Low-Level Operations

Relies on direct memory access and stack allocations, increasing the risk of bugs such as buffer overflows if used carelessly.

Frequently Asked Questions

Quick Stats

Stars111
Forks6
Contributors0
Open Issues8
Last commit3 years ago
CreatedSince 2013

Tags

#d-language#dlang#c-interop#sse#low-level#benchmarking#json-parsing#performance

Built With

D
D

Included in

D748
Auto-fetched 1 day ago

Related Projects

dom.ddom.d

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.

Stars570
Forks130
Last commit3 days ago
cerealedcerealed

Powerful binary serialisation library for D

Stars94
Forks3
Last commit5 months ago
orangeorange

A serialization library for the D programming language.

Stars72
Forks15
Last commit6 years ago
dprotodproto

D Protocol Buffer mixins to create structures at compile time

Stars38
Forks16
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub