-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ffi_view_str/ffi_new_string functions
Let's just use the GLib translation bits rather than rolling our own; this applies primarily to `ffi_new_string()`. However, I think in most cases performance here doesn't matter enough to have an even more special case that avoids duplicating the string. Let's remove the `ffi_view_str()` optimization too in favor of consistently using GLib translation. In the future perhaps we should argue for adding a `from_glib_str_unchecked()` to the upstream GLib bindings.
- Loading branch information
1 parent
a2bbc12
commit 885eb9c
Showing
5 changed files
with
29 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters