ObjFW  View Ticket

2024-03-09
20:29 Ticket [31d1e19cd9] Support for tagged pointer strings status still Open with 3 other changes artifact: b874197b3d user: js
2024-01-14
13:29 Ticket [31d1e19cd9]: 4 changes artifact: 8736794cce user: js
2020-09-29
22:04 New ticket [31d1e19cd9]. artifact: 67e75f0c3c user: js

Ticket UUID: 31d1e19cd93a9f6044a1125fb1e1f080db5bf21b
Title: Support for tagged pointer strings
Status: Open Type: Feature_Request
Severity: Important Priority: Medium
Subsystem: Resolution: Open
Last Modified: 2024-03-09 20:29:42
Version Found In: Milestone: 1.2
User Comments:
js added on 2020-09-29 22:04:46:

While support for tagged pointers was merged in [b4039f9a85], they are only being used by OFNumber and OFDate right now. It would be nice to also use them for short OFStrings. This requires a new OFString subclass.

Since most short strings will be ASCII, tagged pointer strings can be limited to ASCII strings, requiring only 7 bit per character. This would allow storing up to 8 characters in a tagged pointer on 64 bit systems (even when increasing the tag size to a full 8 bits) and up to 4 characters on 32 bit systems (but the tag size needs to stay at the current 4 bits).