feat: remove fn<> wrapper for free funcs, hephaestus now supports passing free funcs by direct pointer instead. #21

Merged
larssonmartin1998 merged 1 commit from heph-free-func-ergonomics into master 2026-08-08 15:03:16 +00:00

This also improved perf by ~5% in debug and ~0.5-1% in release.

API is now:

auto foo(const IEngine&, View<...>) {}
heph.create_systems(&foo);
// instead of
heph.create_systems(fn<&foo>);
This also improved perf by ~5% in debug and ~0.5-1% in release. API is now: ```cpp auto foo(const IEngine&, View<...>) {} heph.create_systems(&foo); // instead of heph.create_systems(fn<&foo>); ```
feat: remove fn<> wrapper for free funcs, hephaestus now supports passing free funcs by direct pointer instead. This also improved perf by ~5% in debug and ~0.5-1% in release.
Some checks failed
Nix Build Verification / Nix Build - macOS aarch64 (Apple Silicon) (pull_request) Has been cancelled
Nix Build Verification / Nix Build - Linux x86_64 (pull_request) Has been cancelled
Non-Nix Build Test / Ubuntu 24.04 - Clang (pull_request) Has been cancelled
Non-Nix Build Test / macOS 14 - Apple Silicon (pull_request) Has been cancelled
Non-Nix Build Test / Windows 2022 - MSVC 2022 (pull_request) Has been cancelled
vcpkg Dependency Test / Test vcpkg setup on macos-14 (pull_request) Has been cancelled
vcpkg Dependency Test / Test vcpkg setup on ubuntu-24.04 (pull_request) Has been cancelled
vcpkg Dependency Test / Test vcpkg setup on windows-2022 (pull_request) Has been cancelled
87ecfe9d4d
larssonmartin1998 deleted branch heph-free-func-ergonomics 2026-08-08 15:03:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
larssonmartin1998/atlas!21
No description provided.