Closed s-hadinger closed 1 month ago
Berry is now able to solidify bytes instances, which opens the door for more flash size optimization.
bytes
Example:
class DemoBin static var b1 = bytes("DEADBEEF") end import solidify solidify.dump(DemoBin)
Output is:
extern const bclass be_class_DemoBin; /******************************************************************** ** Solidified class: DemoBin ********************************************************************/ be_local_class(DemoBin, 0, NULL, be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key(b1, -1), be_const_bytes_instance(DEADBEEF) }, })), (bstring*) &be_const_str_DemoBin );
As expected, the solidified bytes instance is read-only.
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass
Description:
Berry is now able to solidify
bytes
instances, which opens the door for more flash size optimization.Example:
Output is:
As expected, the solidified
bytes
instance is read-only.Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass