百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

libbsc

> 编程语言
开源

高性能块排序数据压缩库

350 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

高性能块排序数据压缩库

Introduction:

This file is a part of bsc and/or libbsc, a program and a library for lossless, block-sorting data compression.

bsc is a high performance file compressor based on lossless, block-sorting data compression algorithms.

libbsc is a library based on bsc, it uses the same algorithms as bsc and enables you to compress memory blocks.

Copyright (c) 2009-2025 Ilya Grebnov

See file AUTHORS for a full list of contributors.

See the bsc and libbsc web site: http://libbsc.com/ for more information.

Software License:

Copyright (c) 2009-2025 Ilya Grebnov

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Please see the file LICENSE for full copyright information and file AUTHORS for full list of contributors.

See also the bsc and libbsc web site: http://libbsc.com/ for more information.

Memory usage:

bsc compresses large files in blocks. Multiple blocks can be processed in parallel on multiple-core CPU. At decompression time, the block size used for compression is read from the header of the compressed file. The block size and number of blocks processed in parallel affects both the compression ratio achieved, and the amount of memory needed for compression and decompression. Compression and decompression requirements are the same and in bytes, can be estimated as 16Mb + 5 x block size x number of blocks processed in parallel.

GPU memory usage for NVIDIA CUDA technology is different from CPU memory usage and can be estimated as 20 x block size for ST, 21 x block size for forward BWT and 7 x block size for inverse BWT.

NVIDIA GPU acceleration:

  1. libbsc uses NVIDIA CUDA technology, resulting in a performance boost on computers with NVIDIA GPU of compute capability 7.5 or higher. Lists of supported GPUs can be found on the NVIDIA website http://developer.nvidia.com/cuda-gpus. You also need to install latest graphics drivers that support CUDA.

  2. Individual kernels are limited to a 2-second runtime by Windows. Kernels that run for longer than 2 seconds will trigger the Timeout Detection and Recovery (TDR) mechanism. Detailed information on disabling the Windows TDR is available at: http://msdn.microsoft.com/en-us/windows/hardware/gg487368.aspx#E2

Installation

  1. Make sure you have typical build tools, make, cmake, a compiler, etc.
  2. Clone this repo locally and cd to it.
  3. Run cmake or cmake -DBSC_BUILD_SHARED_LIB=ON if you also want a shared library.
  4. Run make.
  5. Run sudo make install.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言