Skip to content

Commit

Permalink
Migrate from SnoopPrecompile to PrecompileTools
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored and jakobnissen committed Apr 25, 2023
1 parent 0f545b9 commit 4e2db69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b"
BioGenerics = "47718e42-2ac5-11e9-14af-e5595289c2ea"
BioSequences = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59"
ScanByte = "7b38b023-a4d7-4c5e-8d43-3f3097f304eb"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
StringViews = "354b36f9-a18e-4713-926e-db85100087ba"
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"

Expand All @@ -23,7 +23,7 @@ Automa = "0.8"
BioGenerics = "0.1.2"
BioSequences = "3"
ScanByte = "0.3"
SnoopPrecompile = "1"
PrecompileTools = "1"
StringViews = "1"
TranscodingStreams = "0.9.5"
julia = "1.6"
Expand Down
6 changes: 3 additions & 3 deletions src/workload.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using SnoopPrecompile: @precompile_setup, @precompile_all_calls
using PrecompileTools: @setup_workload, @compile_workload

@precompile_setup begin
@setup_workload begin
fasta_path = joinpath(dirname(@__DIR__), "test", "test.fasta")
fastq_path = joinpath(dirname(@__DIR__), "test", "test.fastq")
fasta = read(fasta_path, String)
fastq = read(fastq_path, String)

@precompile_all_calls begin
@compile_workload begin
records = (
parse(FASTA.Record, fasta),
parse(FASTQ.Record, fastq)
Expand Down

0 comments on commit 4e2db69

Please sign in to comment.