33 مستودعات
Techniques and tools used to refine source code to improve execution speed and reduce resource consumption.
Explore 33 awesome GitHub repositories matching software engineering & architecture · Code Optimization. Refine with filters or upvote what's useful.
Bun is a high-performance runtime environment designed to execute JavaScript and TypeScript applications with minimal latency and high throughput. Built on a native core implemented in Zig, it provides a unified execution engine that leverages JavaScriptCore for efficient memory management and low-latency startup. The project functions as an all-in-one toolchain, integrating a native bundler, transpiler, package manager, and test runner into a single command-line interface. What distinguishes Bun is its focus on native system integration and developer productivity. It features a high-performa
Minimizes file size by stripping whitespace and shortening identifiers during the build process to accelerate application load times.
This project is a high-performance compiler written in Rust that transpiles TypeScript and ECMAScript into compatible JavaScript code. It functions as a TypeScript transpiler, a JavaScript minifier, and a JavaScript bundler. The system distinguishes itself through a WebAssembly plugin host that allows the execution of custom transformation rules without modifying the core binary. It also provides specialized compilation for React source code to improve runtime performance and reduce execution overhead. The broader capability surface includes source-to-source compilation, type annotation stri
Reduces JavaScript bundle size by removing unnecessary characters and optimizing code structure.
LibGDX is a Java-based framework designed for cross-platform game development, enabling the creation and deployment of 2D and 3D games across desktop, mobile, and web environments from a single codebase. It functions as a comprehensive library that abstracts hardware-accelerated graphics, audio, input, and file system access, providing a unified interface for developers to manage game logic and application lifecycles. The framework distinguishes itself through a high-performance architecture that prioritizes efficiency and native interoperability. It utilizes a batch-oriented graphics pipelin
Provides build-time tools to shrink application size and improve performance through ahead-of-time optimizations.
The Java Development Kit is a comprehensive software development environment designed for compiling, debugging, and executing applications written in the Java programming language. It provides the core infrastructure necessary to transform human-readable source code into platform-independent bytecode and run those applications across diverse computing environments. At the center of this environment is the Java Virtual Machine, a runtime engine that executes compiled bytecode while managing memory and system resources. This architecture utilizes a stack-based virtual machine and a platform-agn
Monitors execution patterns to recompile frequently used code paths into efficient native machine code.
oxc is a high-performance JavaScript toolchain developed in Rust for parsing, transforming, and analyzing JavaScript and TypeScript source code. It provides a set of core utilities including a parser that converts code into an abstract syntax tree, a linter for identifying problematic patterns, a formatter for standardizing visual style, and a minifier for reducing production file sizes. The project focuses on high-performance execution through a system design that utilizes single-pass parsing, zero-copy string slicing, and parallel worker processing to handle large codebases. It further opti
Reduces the size of JavaScript files for production by removing unnecessary characters and shortening identifiers.
This project is a comprehensive technical guide to advanced Go programming. It serves as a programming guide, technical reference, and textbook covering low-level optimization and distributed systems architecture. The resource provides detailed instructions on writing assembly instructions to optimize performance-critical code and managing C-Go interoperability to bridge C libraries with Go. It also functions as a manual for implementing remote procedure call mechanisms and creating custom plugins for the Protocol Buffers compiler. The material covers high-level capabilities including the de
Provides detailed instructions on writing low-level CPU instructions to optimize performance-critical code sections.
Compiler Explorer is an online tool and analysis platform used to translate source code into assembly in real time. It functions as a cross-compiler analysis tool, allowing users to examine how various compilers and versions translate the same source code into machine code to analyze optimizations and generation patterns. The platform supports low-level language debugging and the comparison of assembly output across different compiler toolchains. It also provides a self-hosted environment option for users who need to run private deployments with custom binaries or operate within secure offlin
Verifies final machine code to identify performance bottlenecks or unexpected compiler behavior.
Ajv is a high-performance data validation framework that compiles JSON schemas into optimized, standalone JavaScript functions. By transforming declarative schema definitions into executable code, it eliminates runtime interpretation overhead and provides a secure, efficient way to enforce data integrity across both browser and server environments. The library distinguishes itself through its focus on performance and type safety. It employs advanced compilation techniques, including abstract syntax tree optimization and function caching, to ensure rapid validation. Beyond standard checks, it
Shrinks generated validation code by removing unreachable branches and redundant expressions to improve execution speed.
Rolldown is a high-performance JavaScript and TypeScript module bundler written in Rust. It functions as a fast module compiler that implements a Rollup-compatible API to ensure compatibility with existing workflows and plugins while specializing in ECMAScript Module formats. The project distinguishes itself by using a Rust-based core engine and lazy compilation to reduce the time spent resolving and transforming source code. It focuses on minimizing final delivery sizes through static analysis and tree-shaking to remove unused code. The toolset covers a broad range of build capabilities, in
Reduces final bundle size through whitespace removal, identifier optimization, and shortening variable names.
UglifyJS2 is a suite of tools designed for parsing, beautifying, mangling, and minifying JavaScript code. It functions by converting source code into an abstract syntax tree to enable programmatic analysis and transformation, and it includes a dedicated generator for creating associated source maps. The project optimizes web production builds by compressing script logic and removing unreachable code. It utilizes name mangling to shorten variable and property names and implements a beautifier to reconstruct compressed scripts into a human-readable layout. The toolset covers broad capability a
Implements comprehensive JavaScript minification by removing whitespace and optimizing identifiers to reduce file size.
UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose is to reduce the file size of JavaScript source code by removing whitespace and shortening variable names to optimize frontend build assets. The project differentiates itself through its ability to programmatically analyze and transform code using abstract syntax trees. It performs constant folding analysis and conditional compilation to eliminate unreachable or redundant code, and it employs a multi-pass compression pipeline to maximize total file size reduction. The tool pr
Reduces JavaScript file size through whitespace removal and identifier optimization for faster web page loading.
jstips is a curated library of practical JavaScript patterns and concise coding shortcuts. It serves as a reference manual and programming guide for implementing best practices and optimized syntax patterns to write cleaner, more professional code. The project organizes technical knowledge through a collection of isolated, runnable code demonstrations and modular tip classifications. This example-driven approach allows for the discovery of modern language features and specific coding shortcuts without long-form prose. The repository covers areas of code optimization, performance tuning, and
Implements concise coding patterns and shortcuts to improve script execution speed and maintainability.
BenchmarkDotNet is a library and tool suite for measuring the execution time and memory allocation of .NET code. It utilizes statistical sampling and warm-up iterations to determine the stability and precise execution speed of specific methods. The project provides a JIT disassembly viewer to inspect processor disassembly and analyze how the compiler executes code paths. It includes a memory allocation profiler that tracks managed and native memory traffic to identify efficiency bottlenecks. Additionally, a runtime performance comparator allows the same benchmarks to be executed across differ
Analyzes processor disassembly and machine code to understand how the compiler optimizes specific execution paths.
Firefox is a cross-platform web browser engine designed to render web content, execute JavaScript, and manage secure browsing sessions. It utilizes a multi-process isolation architecture that distributes browser tasks across independent operating system processes to ensure stability and prevent site-specific failures from impacting the entire application. The engine incorporates a sandboxed execution environment to restrict web content and untrusted scripts to isolated memory compartments, enforcing security policies that prevent unauthorized access to system resources. The project distinguis
Compiles frequently used code into specialized machine instructions to increase processing efficiency.
This project is a collection of educational resources and technical guides focused on Go performance optimization. It provides instruction on improving execution speed and reducing memory usage through code and architectural refinements. The guides cover advanced strategies for low-level programming, including the use of assembly for SIMD instructions and unsafe pointers for direct memory manipulation. It also details concurrency optimization techniques such as lock sharding and cache-line padding to reduce contention and improve hardware utilization. The material encompasses broad capabilit
Provides advanced strategies for using unsafe pointers and assembly to optimize hardware cache and SIMD usage.
The Android NDK samples provide a comprehensive collection of code examples demonstrating how to integrate C and C++ native code into Android applications. This repository serves as a practical guide for developers utilizing the Android Native Development Kit to implement performance-critical application components that require direct hardware access and low-level system interaction. The project highlights the use of the Java Native Interface to bridge managed code with native modules, enabling cross-language function calls and efficient data exchange. It demonstrates how to manage native act
Uses runtime execution profiles to guide compiler decisions on code layout and inlining for faster execution.
SB Admin 2 is an open-source admin dashboard theme built on Bootstrap, providing a ready-made interface for building administrative panels and data management tools. The project includes a complete Bootstrap-based UI framework with responsive layout components and utility classes as its foundation. The theme comes with an integrated development workflow that includes a file-watching development server with automatic browser reloading, SCSS-to-CSS compilation, JavaScript minification, and vendor dependency management through a Gulp-based build pipeline. This tooling allows developers to custom
Reduces JavaScript file size by stripping whitespace and comments through automated processing.
Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol mangling, and logic optimization for ES6+. It functions as a toolkit for minification, a code mangler for shortening variable and property names, and a dead code eliminator that evaluates constant expressions to remove unreachable logic. The project operates as an AST toolkit that parses JavaScript source into SpiderMonkey AST format for structural analysis. It generates source maps to link compressed production code back to the original source, ensuring that minified bundles remain
Implements advanced structural rewriting to remove redundant logic and simplify JavaScript expressions.
This project is a JavaScript optimizer, minifier, module bundler, transpiler, and static analysis tool. It provides a compilation pipeline designed to shrink file sizes and improve runtime performance. The system utilizes a multi-pass compilation process to perform dead code elimination, global name mangling, and static type inference. It identifies unreachable functions and unused variables to reduce the final output size and detects potential runtime errors without executing the code. The tool manages assets through dependency resolution, code chunking, and bundle management. It ensures co
Reduces the file size of JavaScript bundles by removing whitespace and shortening identifiers.
Rushstack هي مجموعة أدوات شاملة لإدارة مستودعات TypeScript الكبيرة (monorepos)، توفر إطار عمل لأتمتة خط أنابيب البناء، وتنسيق التبعية، والتحليل الثابت. تعمل كمنسق بناء تزايدي ونظام إدارة مصمم للحفاظ على الاتساق والأداء عبر حزم متعددة في مساحة عمل مشتركة. يتميز النظام من خلال نموذج تنفيذ قائم على الرسوم البيانية غير الدورية الموجهة والتزايد القائم على تجزئة المحتوى، مما يضمن إعادة بناء المشاريع المتأثرة فقط. كما يعمل على تحسين تدفقات عمل التطوير عبر التخزين المؤقت لآثار البناء عن بعد مع تكاملات لـ S3 وAzure وHTTP، ويستخدم إدارة مساحة العمل القائمة على الروابط الرمزية (symlink) للرؤية الفورية للتغييرات المحلية. تغطي مجموعة الأدوات مجموعة واسعة من القدرات بما في ذلك تدفقات عمل الإصدار المؤتمتة، وتحليل عقد API، وفرض جودة الكود على مستوى المؤسسة من خلال ملفات تعريف التدقيق (linting) المعيارية. كما توفر دعماً واسعاً لتجميع الأصول، وتحويل TypeScript، وتوليد تعريفات النوع من مخططات JSON والأصول الثابتة. تشمل مجالات المرافق الإضافية إدارة التوطين، وتوليد إشعارات الترخيص، وتنسيق واجهات سطر الأوامر مع مخرجات العمليات المتزامنة.
Compresses JavaScript code using parallel processing to reduce asset size and improve build speed.