OptoCloud
OptoCloud
Explore posts from servers
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
@Jimmacle 🤔
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
Bump?
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
Idk how much more I can do
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
I updated my code a bit more to try to maybe optimize it?
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
I tried to explain it better now
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
sorry for the miswrite
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
the blobs im writing to a tar stream thats streamed into 7zip
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
only their hashes
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
im not dumping the binary blobs into the database
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
Application workflow:
Discover all files, respecting gitignore files along the way

Register all directories traversed to the database and build a directory graph

Then asynchronously using IAsyncEnumerator, with batching and other stuff, for every file discovered:
Hash file, the hash will be used to ensure file contents of identical files are only written to TAR file once, a unique entry of file contents is refered to as a BLOB

Check database if a BLOB has already been registered in the database, if not then write the blob entry to the database

Register the file record with relation to the blob record in the database and set its relation to the directory hierarchy

**Only if** the blob record was inserted into the database, write the file to the tar file with a filename that is the hash of its content (the blob hash)
Discover all files, respecting gitignore files along the way

Register all directories traversed to the database and build a directory graph

Then asynchronously using IAsyncEnumerator, with batching and other stuff, for every file discovered:
Hash file, the hash will be used to ensure file contents of identical files are only written to TAR file once, a unique entry of file contents is refered to as a BLOB

Check database if a BLOB has already been registered in the database, if not then write the blob entry to the database

Register the file record with relation to the blob record in the database and set its relation to the directory hierarchy

**Only if** the blob record was inserted into the database, write the file to the tar file with a filename that is the hash of its content (the blob hash)
14 replies
CC#
Created by OptoCloud on 4/3/2024 in #help
Filesystem packer slows down after 30k files
tar writer has to wait for DB job before doing its thing because if a BLOB with a matching hash has already been written to the TAR file then there is no use writing it again
14 replies
CC#
Created by OptoCloud on 8/4/2023 in #help
❔ How to have downloaded nuget packages on the same drive as repository?
Unfixable, need some way to always have nuget packages at the same place as the source code
6 replies
CC#
Created by OptoCloud on 8/4/2023 in #help
❔ How to have downloaded nuget packages on the same drive as repository?
submitted bug report but need temp fix https://github.com/jamescourtney/FlatSharp/issues/390
6 replies
CC#
Created by OptoCloud on 8/4/2023 in #help
❔ How to have downloaded nuget packages on the same drive as repository?
Flatsharp is trying to cd .. out of the C drive where the nuget cache is and into the H drive which is what i use for dev and where my project is
6 replies
CC#
Created by OptoCloud on 8/4/2023 in #help
❔ How to have downloaded nuget packages on the same drive as repository?
I have tried: - Changing the path of the files - Searching online for answers - Changing the windows path length - Reinstalling nuget packages - Refetching repository - Downgrading nuget packages
6 replies
CC#
Created by OptoCloud on 6/18/2023 in #help
❔ Can I Fire and forget ALOT of tasks? If so how do i do this efficiently?
the same way you would use ArrayPool<> instead of allocating arrays all the time, im asking this question because doing this at such a frequency might be bad
19 replies
CC#
Created by OptoCloud on 6/18/2023 in #help
❔ Can I Fire and forget ALOT of tasks? If so how do i do this efficiently?
but this means allocating thousands of tasks that way
19 replies
CC#
Created by OptoCloud on 6/18/2023 in #help
❔ Can I Fire and forget ALOT of tasks? If so how do i do this efficiently?
im aware
19 replies
CC#
Created by OptoCloud on 6/18/2023 in #help
❔ Can I Fire and forget ALOT of tasks? If so how do i do this efficiently?
memory usage n stuff
19 replies
CC#
Created by OptoCloud on 6/18/2023 in #help
❔ Can I Fire and forget ALOT of tasks? If so how do i do this efficiently?
well yeah thats the easy way but i dont think thats smart
19 replies