Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add raw decoder #96

Merged
merged 11 commits into from
Jan 6, 2024
Merged

feat: add raw decoder #96

merged 11 commits into from
Jan 6, 2024

Conversation

muktihari
Copy link
Owner

The idea is to allow us to use a minimal viable decoder for performance and memory-critical situations, where every computation or memory usage is constrained. RawDecoder itself is using constant memory < 131 KB and the Decode method has zero heap alloc (except errors) while it may use additional small stack memory. The implementation of the callback function is also expected to have minimal overhead. Theoretically, from the memory usage alone, this can run on an embedded device, for instance, using tinygo or other compilers, but no attempt has been made.

@muktihari muktihari added the enhancement New feature or request label Jan 6, 2024
@muktihari muktihari self-assigned this Jan 6, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (82b5514) 99.89% compared to head (784fb24) 99.89%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master      #96    +/-   ##
========================================
  Coverage   99.89%   99.89%            
========================================
  Files          42       43     +1     
  Lines        3839     3965   +126     
========================================
+ Hits         3835     3961   +126     
  Misses          4        4            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@muktihari muktihari merged commit 7748532 into master Jan 6, 2024
1 check passed
@muktihari muktihari deleted the feat/add-raw-decoder branch January 6, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants