From db46fb989b85af6347a96b86c1cbfd6bf5bbb87c Mon Sep 17 00:00:00 2001 From: Adrian Henle Date: Sat, 8 Oct 2022 13:31:02 -0700 Subject: [PATCH] precompile (#176) --- Project.toml | 4 +++- src/Xtals.jl | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 48bdde8..ce7adac 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Xtals" uuid = "ede5f01d-793e-4c47-9885-c447d1f18d6d" authors = ["SimonEnsemble "] -version = "0.4.9" +version = "0.4.10" [deps] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" @@ -14,6 +14,7 @@ Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5" +PrecompileSignatures = "91cefc8d-f054-46dc-8f8c-26e11d7c5411" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" @@ -28,6 +29,7 @@ FIGlet = "0.2" Graphs = "1.4" JLD2 = "0.4" MetaGraphs = "0.7" +PrecompileSignatures = "3.0" StaticArrays = "1.3" Unitful = "1.11" julia = "1.6, 1.7, 1.8" diff --git a/src/Xtals.jl b/src/Xtals.jl index 3ffbf5c..4ab7a57 100644 --- a/src/Xtals.jl +++ b/src/Xtals.jl @@ -1,6 +1,7 @@ module Xtals using AtomsBase, Bio3DView, CSV, DataFrames, FIGlet, Graphs, LinearAlgebra, MetaGraphs, Printf, StaticArrays, Unitful +using PrecompileSignatures: @precompile_signatures # global variable dictionary global rc = Dict{Symbol,Any}() @@ -60,4 +61,6 @@ export write_bonding_rules, add_bonding_rules, drop_cross_pb_bonds!, bondingrules, bond_angle, get_bond_vector, calculate_bond_vectors!, clear_vectors!, bond_distance, infer_bonds +@precompile_signatures(Xtals) + end # module Xtals