mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #733] [CLOSED] Improved BrotliParseAsUTF8 function #1370
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/733
Author: @PopeSpaceous
Created: 12/11/2018
Status: ❌ Closed
Base:
master← Head:UTF8Improvement📝 Commits (1)
db54ba8Improved BrotliParseAsUTF8 function📊 Changes
1 file changed (+7 additions, -28 deletions)
View changed files
📝
c/enc/utf8_util.c(+7 -28)📄 Description
Hi, I was working on optimizing a compression software and was looking into brotli.
Using some benchmarking tools I found that there was room for improvement in the BrotliParseAsUTF8 function.
I have made some changes to the code and when you run files around a GB large you gain about a 20% improvement in speed, with no changes to the file size or changes to the file themselves.
I have outlined more of my testing, benchmarking and code on my site if you wanted to use those as a reference for my changes:
Benchmarking
Implimentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.