This library overwrites malloc, realloc, calloc and free in a c module with functions that call into a zig allocator. Perhaps it is a really stupid idea but I thought it would be fun.| Ziggit
A community for anyone interested in the Zig Programming Language.| Ziggit
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. – Antoine de Saint-Exupéry| Ziggit
A community for anyone interested in the Zig Programming Language.| Ziggit
I’m running into strange behavior with zig build run, and I’m hoping others might help explain what’s happening. I have a simple Zig app that I can run with zig build run. But if I run the compiled binary afterwards, the performance is 10x worse than with zig build run. src/main.zig const std = @import("std"); pub fn countBytes(reader: anytype) !u32 { var count: u32 = 0; while (true) { _ = reader.readByte() catch |err| switch (err) { error.EndOfStream => { ...| Ziggit