Comments (5)
danger/test contains a C project I used for testing, there's a small assembly wrapper in test.s that makes the huffmunch decompression library available to the test program (test.c)
I'll consider moving that wrapper to the root, though, to make integration with C programs easier
from huffmunch.
Hmm, not sure if I can really make an easy C integration. The problem is that it needs an allocation on the zero page, and the default CFG for most platforms restrict the size of their ZP segment, so you couldn't actually use it without at least a hand-created CFG.
Hmm, maybe I could have the C implementation temporarily copy the ZP variables over the built-in C ones, but it would add significant performance overhead... :( Well, maybe I can do that but with a note in the source about how to make it better with a custom CFG.
from huffmunch.
I've created the wrapper described. The test program again provides an example of how to use it. Please let me know what you think.
Should work even without a custom CFG. The performance was only 20% worse in the end, but I left an option to override it manually and get that performance back.
(Self reminder: bump version to 1.5 and tag a new release when closing this.)
from huffmunch.
wow that was fast :D
will give a try asap!
from huffmunch.
Have finally released 1.5 which includes the C wrapper.
from huffmunch.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huffmunch.