DocFX is a .NET-based documentation generator that creates static HTML websites from Markdown, YAML metadata, .NET API comments, and REST API specifications. It features a modular architecture with a plugin system for extensibility, processing pipelines for different document types (conceptual, managed reference, REST API), and a template engine for customizable output. The system processes input files through metadata extraction, template application, and post-processing to generate documentation sites. Key components include a command-line interface (docfx.exe), build orchestration, schema-driven document validation, cross-reference resolution, and resource handling. The tool supports multiple templates (default, modern, statictoc) and output formats including HTML and PDF via Playwright rendering.
Netpoll is a high-performance non-blocking I/O networking framework for Go, developed by ByteDance for RPC scenarios. It provides an event-loop server and dialer with zero-copy Reader/Writer APIs backed by a custom linked buffer (LinkBuffer). Under the hood, it uses epoll on Linux and kqueue on BSD, with an operator cache and a load-balanced poll manager. The architecture is a non-blocking reactor pattern: an event loop accepts connections, assigns them to pollers, and schedules OnRequest/OnConnect/OnDisconnect callbacks asynchronously via a goroutine pool. The library features connection health checking, idle timeout, and a connection reuse probe for client pools. It is production-ready and used by ByteDance's RPC framework Kitex and HTTP framework Hertz.
This repository provides a .NET library for performing high-performance bulk operations (insert, update, delete, merge, match) with Entity Framework Core and SQL Server. It extends DbContext with extension methods that leverage SqlBulkCopy and temporary tables to minimize database round-trips when processing large datasets. The library supports synchronous and asynchronous APIs, handles complex EF Core features (owned types, complex types, JSON properties, discriminators), and includes a fluent builder pattern for configuring operations. The architecture centers around extension methods for DbContext and a ConnectionContext abstraction for lower-level SQL operations. Key internal components include a property access cache for performance, sequential GUID generation for index-friendly keys, and a table mapping system to customize entity-to-table mappings. The library implements bulk operations by creating temporary tables, using SqlBulkCopy for efficient data loading, and then executing set-based SQL operations (INSERT, UPDATE, DELETE, MERGE) to synchronize with the target tables. Notable reusable components include the PropertiesCache, which compiles and caches property accessors to eliminate reflection overhead, and the SequentialGuidGenerator, which creates database-optimized GUIDs. The library is actively maintained, targets recent .NET versions, and includes a comprehensive test suite and benchmark projects validating performance improvements over standard EF Core operations.
This repository is a high-quality .NET library implementing the OpenBSD BCrypt password hashing algorithm. It serves as a security-critical dependency for authentication systems, providing robust password hashing, verification, and salt generation. The codebase is multi-targeted, supporting legacy .NET Framework versions (4.6.2+) alongside modern .NET standards (2.0/2.1) and recent runtimes (.NET 8.0, 10.0). It includes specialized extensions for ASP.NET Core Identity, allowing seamless integration into existing authentication pipelines without custom implementation. The architecture prioritizes security through constant-time comparisons, secure memory handling, and thread-safe key schedule management using ThreadLocal storage. The library includes extensive test vectors from the original Java reference implementation to ensure algorithmic correctness across different BCrypt revisions (2a, 2b, 2y, 2x). While the core library is production-ready and widely adopted, the repository exhibits some hygiene issues, including the presence of a signing key file in the root directory and a 'dists/' folder containing legacy binary artifacts, which suggests a mix of automated and manual release processes. For engineers evaluating reuse, this library offers a reliable, well-tested foundation for password security. The Identity extension component is particularly valuable for .NET developers needing to replace default password hashers. However, consumers should be aware of the technical drift regarding legacy framework support and the potential security implications of the repository's artifact management practices.