Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #4

Merged
merged 5 commits into from
Nov 18, 2023
Merged

Dev #4

merged 5 commits into from
Nov 18, 2023

Commits on Nov 17, 2023

  1. Refactor buildscript.sh for improved dependency handling

    Updated the bash script for building the project to improve dependency management. Added error checks, structured the code into modular functions, and implemented detection and installation of necessary packages if not already present. This increases the reliability and flexibility of the build script, and simplifies its usage and maintenance.
    dr8co committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    f2ab31f View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Make COLOR map static in utils.hpp

    Changed the COLOR map in utils.hpp from const to static const. This change ensures thread safety and makes sure that the map is shared across all instances of the object, helping reduce memory usage.
    dr8co committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    a59bbe2 View commit details
    Browse the repository at this point in the history
  2. Improve file shredding performance and error handling

    Optimized file shredding process by writing random data in buffer-sized chunks, rather than byte by byte, which significantly improves performance. Introduced proper error handling in case of write failure and adjusted buffer size for the last chunk of data when it's smaller than buffer size. Made consistent formatting adjustments. Also, reference was added to overwriteConstantByte function parameter for optimization.
    dr8co committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    58ef7d7 View commit details
    Browse the repository at this point in the history
  3. Refactor code and change buffer size type for File Shredder

    The code for the file shredder in shredFiles.cpp was refactored to improve readability and maintainability. The type of BUFFER_SIZE was changed from std::size_t to std::streamoff to improve performance and increase precision for larger files. Also, direct file operations were replaced with FileDescriptor and FileStatInfo structures for better error handling and code clarity.
    dr8co committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    1d647ef View commit details
    Browse the repository at this point in the history
  4. Document the introduced structs

    dr8co committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    ea7d1db View commit details
    Browse the repository at this point in the history