Speeding up importing Phobos files

KnightMare black80 at bk.ru
Fri Jun 7 12:58:00 UTC 2019


On Friday, 7 June 2019 at 12:50:27 UTC, KnightMare wrote:
> zip-archive allows you to unpack the file in its original form.
> unpacking allows to see source code.
>

u can unzip w/o any special tools - OSes can work with zip usually
so, yes, 1stage - using ZIP as one file is ok.

2stage: pack sources to 1 file as AST
pro:
- no need unpack stage from mapped files - all string spans can 
be stored as string-table-indicies allows to pack 2x-3x times
- no need parsing/verifying stage - u already have checheked AST.
contra:
need special tools (or commands to compiler) to unpack source 
files


More information about the Digitalmars-d mailing list