Skip to content

Conversation

@johannesvollmer
Copy link
Owner

@johannesvollmer johannesvollmer commented Jan 28, 2026

Cherrypicked from #256 this PR mainly improves readability of the code by using standard patterns where non-standard patterns were used before. There should be no breaking changes in this PR.

Observable for downstream users: Some error messages have been improved.
Some minor bugs in tests and benchmarks are fixed.


bench.iter(|| {
let image = read_file_from_memory_as::<f16>(file.as_slice(), parallel);
let image = read_file_from_memory_as::<T>(file.as_slice(), parallel);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Epic catch! The benchmarks for conversion were not correct 🫢 This fixes it, and different measurements are the result!

@johannesvollmer johannesvollmer marked this pull request as ready for review January 29, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants