-
Notifications
You must be signed in to change notification settings - Fork 168
Description
I think we should copy & embed any string/constant pool entry in the serialized output and therefore not need the source at all when deserializing.
That would mean larger serialized size but no need to read the source at all which could be a nice speedup in the case the serialized form is saved on disk and newer/equal the source file.
I think the serialized size wouldn't be worse than before + eager loading constant pool and strings, it would be about the same, but gaining to not have to read the source.
That might actually be fairly easy, and would be less temporal memory than serialized + source at the same time in memory (but that's not a big deal).
This would also remove the need for accessing owned
when serializing the constant pool: #1449 (comment)
Originally posted by @eregon in #1479 (comment)