Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _posts/2022-01-14-new-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ By using the derive macro, structured data can be handled automatically instead

### Stack allocated types and reducing heap allocations

Various types that usually used stack-allocated from C were previously heap-allocated in the Rust bindings. With this release, these values are also stack-allocated when used from Rust unless explicitly heap-allocated, e.g. by explicitly placing them into a `Box`.
Various types that are usually stack-allocated in C were previously heap-allocated in the Rust bindings. With this release, these values are also stack-allocated when used from Rust unless explicitly heap-allocated, e.g. by explicitly placing them into a `Box`.

Examples for this are all the [`graphene`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/graphene/index.html) types (vectors, matrices, etc), which should make calculations considerably more efficient, types like [`gdk::Rectangle`](https://gtk-rs.org/gtk4-rs/stable/0.15/docs/gdk4/struct.Rectangle.html) and [`gdk::RGBA`](https://gtk-rs.org/gtk4-rs/stable/0.15/docs/gdk4/struct.RGBA.html), and [`gtk::TreeIter`](https://gtk-rs.org/gtk4-rs/stable/0.15/docs/gtk4/struct.TreeIter.html).

Expand Down