Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 1 | DEPRECATED |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 2 | SYNOPSIS |
Zesstra | d59c389 | 2019-11-28 20:53:39 +0100 | [diff] [blame] | 3 | string make_shared_string(string str) |
| 4 | bytes make_shared_string(bytes str) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 5 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 6 | DESCRIPTION |
| 7 | Puts <str> in the table of shared strings of the game. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 8 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 9 | If the string is used by several variables/objects this |
| 10 | saves memory. Keys of alists and mappings are always shared |
| 11 | strings. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 12 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 13 | In LDMud 3.3, this function is no longer necessary: strings |
| 14 | are shared as much as possible anyway, and the driver automatically |
| 15 | converts untabled strings into tabled strings after some time. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 17 | HISTORY |
| 18 | Introduced in LDMud 3.2.6; following a suggestion from Tubmud. |
| 19 | Deprecated in LDMud 3.3.531. |