Skip to content

Added Addon::Writer + A few other changes#48

Open
RaphaelIT7 wants to merge 2 commits intoFacepunch:masterfrom
RaphaelIT7:patch-2
Open

Added Addon::Writer + A few other changes#48
RaphaelIT7 wants to merge 2 commits intoFacepunch:masterfrom
RaphaelIT7:patch-2

Conversation

@RaphaelIT7
Copy link
Copy Markdown
Contributor

[+] Added -lowmemory option to write everything directly to the .gma file
Reduces the needed memory to only the size of the biggest file in the entire addon.
[+] Added -lowmemory and -nocrc to the help list.
[#] Reallocating the file buffer only once instead of every time.
[#] if necessary, write the .gma in chunks if the buffer gets too full.
NOTE: If this happens we cannot create a CRC of the .gma because at this point it would probably fail to load or cause a crash.

[+] Added -lowmemory option to write everything directly to the .gma file
Reduces the needed memory to only the size of the biggest file in the entire addon.
[+] Added -lowmemory and -nocrc to the help list.
[#] Reallocating the file buffer only once instead of every time.
[#] if necessary, write the .gma in chunks if the buffer gets too full.
NOTE: If this happens we cannot create a CRC of the .gma because at this point it would probably fail to load or cause a crash.
[#] Optimized CRC to use the file buffer instead of reading the file again
[#] Highly optimized file whitelist
[#] Optimized RemoveIgnoredFiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant