1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
Earle F. Philhower, III 7369133681
Small String Optimization (#5690)
Reduce String memory overhead from 24 bytes to 16 bytes by limiting the
maximum string length to <64Kbytes (which is larger than heap so no
effective problem).

Add Small String Optimization, SSO, which instead of allocating pointers
to small strings on the heap will store the string in place of the
pointer in the class.  This should reduce memory fragmentation as

Save up to 12 chars (11 + \0) in String itself by using the terminating
\0 in the inline string as a flag to identify if this is a SSO or a heap
string.

Add a host test that verifies that no memory is allocated until a
full 11 characters are assigned to a string, as well as checking all
intermediate values.

No user code changes should be required to work with this optimization.
2019-02-08 17:37:43 +00:00
..
2019-02-04 05:08:54 -03:00
2019-02-04 05:08:54 -03:00
2018-11-20 18:51:45 -02:00
2019-02-06 23:06:17 -03:00
2018-11-24 02:00:34 -03:00
2017-05-12 01:03:14 -05:00
2019-02-06 23:06:17 -03:00
2016-03-03 02:13:22 +03:00
2019-02-06 23:06:17 -03:00
2019-02-06 23:06:17 -03:00
2018-12-10 10:35:11 -03:00
2014-12-01 00:34:28 +03:00
2019-02-08 17:37:43 +00:00
2019-02-08 17:37:43 +00:00