jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Should we keep external magic string support?

Open bzsolt opened this issue 10 years ago • 2 comments

Let's start a discussion about external magic string support, because there are some related functions, but they aren't used currently (e.g.ecma_is_ex_string_magic, ecma_is_ex_string_magic_longpath). Now we can just register external magic strings, but they aren't accesssible through the API. Is there anybody who uses, or plans to use this feature?

bzsolt avatar Feb 25 '16 14:02 bzsolt

IoT.js uses external magic strings but only the jerry_register_external_magic_strings function (in iotjs/src/iotjs_string_ext.cpp). It would be interesting to see how its memory consumption would change without those magic strings.

akosthekiss avatar Feb 29 '16 14:02 akosthekiss

I would rather keep it (or a special version of it). However, it should be automatically generated from snapshot. This would reduce the string memory consumption a lot. I would like to work on it if noone else is interested.

zherczeg avatar Apr 01 '16 05:04 zherczeg