ericentin / nifsy Goto Github PK
View Code? Open in Web Editor NEWA nifty NIF for the FS, providing faster filesystem operations for Elixir
License: Other
A nifty NIF for the FS, providing faster filesystem operations for Elixir
License: Other
Hi @potatosalad!
More developers are using Elixir for data processing and the speed from which we read and write to files has lately been a concern. @antipax decided to explore solutions and one of them is this project: a module that implements file read and write operations as a NIF. For performance, we are reading data into a buffer and then read out of the buffer (similar to Erlang read-ahead). This is considerably faster than Erlang default file handling (that uses a process + port) and about 3x-4x faster than Elixir streams.
The reason we are pinging you is that you have done great work on C libraries so we would love if you could do a code review in your spare time. In particular, we would love to know if we can further optimize our buffer handling, reduce the amount of allocations, etc.
Thank you! ❤️
Hello. I try to read an audio file for later sending to external service.And the data is corrupted while reading
Simple example:
"path/to/input/file.wav"
|> Nifsy.stream!()
|> Stream.into(File.stream!("path/to/output/file.wav"))
|> Stream.run()
The output file has a noise
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.