11 个仓库
Tools to improve execution speed and memory efficiency.
Explore 11 awesome GitHub repositories matching part of an awesome list · Code Optimization. Refine with filters or upvote what's useful.
This project is a JavaScript code protection tool designed to transform source code into a version that is difficult for humans to read. Its primary purpose is to protect intellectual property and prevent reverse engineering by altering the original program logic. The tool employs several advanced techniques to hinder analysis, including control flow flattening and the injection of dead code. It can compile functions into custom bytecode executed by an embedded virtual machine and encrypt string literals to prevent static analysis of text. Additional capabilities include anti-debugging mecha
Advanced obfuscation for JavaScript and Node.js.
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
JavaScript minification and compression tool.
imagemin 是一个 Node.js 图像优化和压缩工具,旨在减小图像资产的存储大小。它作为一个构建流水线资产优化器,采用有损和无损压缩来移除不必要的元数据并优化像素数据。 该项目使用基于插件的架构来扩展其功能,加载处理特定图像格式和压缩算法的外部模块。这使得该工具能够作为一个灵活的工具包,用于在开发流水线中自动化图像压缩。 该系统涵盖了广泛的 Web 性能优化功能,包括集成到前端资产流水线和静态站点生成工作流中,以降低带宽消耗并提高页面加载速度。
Image optimization and compression library.
cssnano 是一个 CSS 压缩和精简工具,可减小样式表的文件大小和 gzip 占用空间。它作为构建流水线优化器和代码转换器运行,在删除空格和注释的同时,将颜色和渐变缩短为尽可能小的表示形式。 该工具使用模块化插件架构和基于预设的优化级别,以平衡压缩强度与浏览器兼容性。它允许根据目标支持浏览器列表调整输出,以确保精简后的样式在不同环境中保持兼容。 该项目集成到 PostCSS 流水线和模块打包器中,提供命令行界面和用于构建过程集成的自动化功能。这使得通过自动化的 CSS 精简工作流能够减少总字节大小并降低网络延迟。
Modular CSS minification based on PostCSS.
This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It functions as a JavaScript minifier that uses the Babel toolchain to reduce file size by removing unnecessary characters and whitespace while preserving program logic. The tool is distinguished by its ability to process experimental language proposals and transform modern syntax into browser-compatible versions. It provides specialized handling for React JSX transpilation and strips type annotations from TypeScript files to produce compressed production assets. The system cove
Babel-based minification for modern JavaScript.
Clean-CSS 是一个 Node.js CSS 优化器和压缩器,旨在减小样式表文件大小并提高 Web 性能。它作为一个 CSS 后处理器,从样式表中删除不必要的空格、注释和冗余属性。 该项目利用抽象语法树进行解析,并使用多遍优化流水线来重构规则并简化属性。它具有用于自定义样式转换的插件接口,并提供兼容性感知压缩,以确保样式在特定的旧版浏览器版本中保持功能正常。 其他功能包括用于调试的源映射生成、用于重定位图像和字体的资产 URL 重置,以及内联导入语句的解析。该系统支持批量文件处理,并提供用于在前端构建流水线中自动化优化任务的命令行界面。
CSS optimization and minification tool.
A minimalist bytecode compiler for Node.js.
Bytecode compilation to protect source code.
Boot large Ruby/Rails apps faster
Accelerates boot times for large Ruby and Rails applications.
A streaming JSON parsing and encoding library for Ruby (C bindings to yajl)
Streaming JSON parsing and encoding with C bindings.
Strip comments from CSS
Removal of comments from CSS files.