-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String encoding; direct access to strings without copying #37
Comments
Is the internal Emacs encoding clearly documented somewhere? |
There is some documentation in https://www.gnu.org/software/emacs/manual/html_node/elisp/Text-Representations.html and https://www.gnu.org/software/emacs/manual/html_node/elisp/Coding-System-Basics.html, and
So this means that module authors could e.g. compare
Unfortunately that makes operations such as interning more awkward; instead of
However, such code can be easily abstracted in a convenience function, whereas the current API implicitly requires using the internal encoding without specifying it. |
We should define what string encodings are expected and what is returned to module code. With that specification we might be able to implement zero-copy access to string/buffer contents.
The text was updated successfully, but these errors were encountered: