I’m trying to creating a library for my module using PackageCompiler but it takes forever. At this point the script is already running for 9 hours. Any ideas how I can speed this up?
create_library(
package_or_project,
dest_dir;
lib_name = "lib.so", # Custom name for the compiled library
incremental = false, # Create a fresh sysimage from scratch for maximum reliability
filter_stdlibs = false, # Only include standard libraries that are in the project file
force = false, # Force re-creation of the library if it already exists
include_lazy_artifacts = false, # Avoid lazy artifacts for simplicity and better performance
include_transitive_dependencies = true, # Include all dependencies to ensure full functionality
include_preferences = true, # Include project preferences
sysimage_build_args = `-O3 --check-bounds=no`, # Optimize for speed with bounds checking disabled
cpu_target = "native", # Optimize for the CPU of the current machine
version = v"1.0.0", # Version number of the library
compat_level = "major", # Set compatibility level to major
script = nothing, # No additional scripts are executed
base_sysimage = nothing # Do not base this sysimage on an existing one
)