Skip to content
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

SRFI 135 proposed implementation improvement #824

Open
johnwcowan opened this issue Sep 8, 2018 · 0 comments
Open

SRFI 135 proposed implementation improvement #824

johnwcowan opened this issue Sep 8, 2018 · 0 comments

Comments

@johnwcowan
Copy link

Store an extra flag in the record representing a SRFI 135 text indicating that all its characters are fixed-width. Because texts are immutable, the value of this flag can be determined at construction time. If it is set, a fast dereference operation can be used to find a particular character.

This flag would have no significance when used with kernel0, but would speed up (by a constant factor) access to ASCII-repertoire strings in kernel8 and UCS2-repertoire strings in kernel16, both of which are common cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants