Skip to content

Commit

Permalink
moved precompilation data to main file
Browse files Browse the repository at this point in the history
  • Loading branch information
eohne committed Oct 6, 2024
1 parent 926375e commit 070fcaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions precom_data/precom_data.jl

This file was deleted.

6 changes: 5 additions & 1 deletion src/YFinance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ module YFinance
include("News_Search.jl");

@setup_workload begin
include("..\\precom_data\\precom_data.jl");
price_test_resp = UInt8[0x7b, 0x22, 0x63, 0x68, 0x61, 0x72, 0x74, 0x22, 0x3a, 0x7b, 0x22, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x3a, 0x5b, 0x7b, 0x22, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x3a, 0x7b, 0x22, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x3a, 0x22, 0x55, 0x53, 0x44, 0x22, 0x2c, 0x22, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x22, 0x3a, 0x22, 0x41, 0x41, 0x50, 0x4c, 0x22, 0x2c, 0x22, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x4e, 0x4d, 0x53, 0x22, 0x2c, 0x22, 0x66, 0x75, 0x6c, 0x6c, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x4e, 0x61, 0x73, 0x64, 0x61, 0x71, 0x47, 0x53, 0x22, 0x2c, 0x22, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x22, 0x45, 0x51, 0x55, 0x49, 0x54, 0x59, 0x22, 0x2c, 0x22, 0x66, 0x69, 0x72, 0x73, 0x74, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0x3a, 0x33, 0x34, 0x35, 0x34, 0x37, 0x39, 0x34, 0x30, 0x30, 0x2c, 0x22, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x37, 0x32, 0x30, 0x30, 0x31, 0x2c, 0x22, 0x68, 0x61, 0x73, 0x50, 0x72, 0x65, 0x50, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x22, 0x3a, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x22, 0x67, 0x6d, 0x74, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x3a, 0x2d, 0x31, 0x34, 0x34, 0x30, 0x30, 0x2c, 0x22, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x3a, 0x22, 0x45, 0x44, 0x54, 0x22, 0x2c, 0x22, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x65, 0x77, 0x5f, 0x59, 0x6f, 0x72, 0x6b, 0x22, 0x2c, 0x22, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x3a, 0x32, 0x32, 0x36, 0x2e, 0x38, 0x2c, 0x22, 0x66, 0x69, 0x66, 0x74, 0x79, 0x54, 0x77, 0x6f, 0x57, 0x65, 0x65, 0x6b, 0x48, 0x69, 0x67, 0x68, 0x22, 0x3a, 0x32, 0x32, 0x38, 0x2e, 0x30, 0x2c, 0x22, 0x66, 0x69, 0x66, 0x74, 0x79, 0x54, 0x77, 0x6f, 0x57, 0x65, 0x65, 0x6b, 0x4c, 0x6f, 0x77, 0x22, 0x3a, 0x32, 0x32, 0x34, 0x2e, 0x31, 0x34, 0x2c, 0x22, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x79, 0x48, 0x69, 0x67, 0x68, 0x22, 0x3a, 0x32, 0x32, 0x38, 0x2e, 0x30, 0x2c, 0x22, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x79, 0x4c, 0x6f, 0x77, 0x22, 0x3a, 0x32, 0x32, 0x34, 0x2e, 0x31, 0x34, 0x2c, 0x22, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x3a, 0x33, 0x37, 0x30, 0x37, 0x36, 0x33, 0x35, 0x35, 0x2c, 0x22, 0x6c, 0x6f, 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x41, 0x70, 0x70, 0x6c, 0x65, 0x20, 0x49, 0x6e, 0x63, 0x2e, 0x22, 0x2c, 0x22, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x41, 0x70, 0x70, 0x6c, 0x65, 0x20, 0x49, 0x6e, 0x63, 0x2e, 0x22, 0x2c, 0x22, 0x63, 0x68, 0x61, 0x72, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x22, 0x3a, 0x37, 0x2e, 0x35, 0x32, 0x36, 0x2c, 0x22, 0x70, 0x72, 0x69, 0x63, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x22, 0x3a, 0x32, 0x2c, 0x22, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x3a, 0x7b, 0x22, 0x70, 0x72, 0x65, 0x22, 0x3a, 0x7b, 0x22, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x3a, 0x22, 0x45, 0x44, 0x54, 0x22, 0x2c, 0x22, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x32, 0x38, 0x38, 0x30, 0x30, 0x2c, 0x22, 0x65, 0x6e, 0x64, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x34, 0x38, 0x36, 0x30, 0x30, 0x2c, 0x22, 0x67, 0x6d, 0x74, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x3a, 0x2d, 0x31, 0x34, 0x34, 0x30, 0x30, 0x7d, 0x2c, 0x22, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x22, 0x3a, 0x7b, 0x22, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x3a, 0x22, 0x45, 0x44, 0x54, 0x22, 0x2c, 0x22, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x34, 0x38, 0x36, 0x30, 0x30, 0x2c, 0x22, 0x65, 0x6e, 0x64, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x37, 0x32, 0x30, 0x30, 0x30, 0x2c, 0x22, 0x67, 0x6d, 0x74, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x3a, 0x2d, 0x31, 0x34, 0x34, 0x30, 0x30, 0x7d, 0x2c, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x22, 0x3a, 0x7b, 0x22, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x22, 0x3a, 0x22, 0x45, 0x44, 0x54, 0x22, 0x2c, 0x22, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x37, 0x32, 0x30, 0x30, 0x30, 0x2c, 0x22, 0x65, 0x6e, 0x64, 0x22, 0x3a, 0x31, 0x37, 0x32, 0x38, 0x30, 0x38, 0x36, 0x34, 0x30, 0x30, 0x2c, 0x22, 0x67, 0x6d, 0x74, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x3a, 0x2d, 0x31, 0x34, 0x34, 0x30, 0x30, 0x7d, 0x7d, 0x2c, 0x22, 0x64, 0x61, 0x74, 0x61, 0x47, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x22, 0x3a, 0x22, 0x31, 0x64, 0x22, 0x2c, 0x22, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x3a, 0x22, 0x22, 0x2c, 0x22, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x3a, 0x5b, 0x22, 0x31, 0x64, 0x22, 0x2c, 0x22, 0x35, 0x64, 0x22, 0x2c, 0x22, 0x31, 0x6d, 0x6f, 0x22, 0x2c, 0x22, 0x33, 0x6d, 0x6f, 0x22, 0x2c, 0x22, 0x36, 0x6d, 0x6f, 0x22, 0x2c, 0x22, 0x31, 0x79, 0x22, 0x2c, 0x22, 0x32, 0x79, 0x22, 0x2c, 0x22, 0x35, 0x79, 0x22, 0x2c, 0x22, 0x31, 0x30, 0x79, 0x22, 0x2c, 0x22, 0x79, 0x74, 0x64, 0x22, 0x2c, 0x22, 0x6d, 0x61, 0x78, 0x22, 0x5d, 0x7d, 0x2c, 0x22, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x3a, 0x5b, 0x31, 0x32, 0x36, 0x32, 0x36, 0x31, 0x35, 0x34, 0x30, 0x30, 0x2c, 0x31, 0x32, 0x36, 0x32, 0x37, 0x30, 0x31, 0x38, 0x30, 0x30, 0x5d, 0x2c, 0x22, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x3a, 0x7b, 0x22, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x22, 0x3a, 0x5b, 0x7b, 0x22, 0x6c, 0x6f, 0x77, 0x22, 0x3a, 0x5b, 0x37, 0x2e, 0x35, 0x38, 0x35, 0x30, 0x30, 0x30, 0x30, 0x33, 0x38, 0x31, 0x34, 0x36, 0x39, 0x37, 0x33, 0x2c, 0x37, 0x2e, 0x36, 0x31, 0x36, 0x30, 0x37, 0x31, 0x32, 0x32, 0x34, 0x32, 0x31, 0x32, 0x36, 0x34, 0x36, 0x35, 0x5d, 0x2c, 0x22, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x22, 0x3a, 0x5b, 0x37, 0x2e, 0x36, 0x34, 0x33, 0x32, 0x31, 0x34, 0x32, 0x32, 0x35, 0x37, 0x36, 0x39, 0x30, 0x34, 0x33, 0x2c, 0x37, 0x2e, 0x36, 0x35, 0x36, 0x34, 0x32, 0x38, 0x38, 0x31, 0x33, 0x39, 0x33, 0x34, 0x33, 0x32, 0x36, 0x5d, 0x2c, 0x22, 0x68, 0x69, 0x67, 0x68, 0x22, 0x3a, 0x5b, 0x37, 0x2e, 0x36, 0x36, 0x30, 0x37, 0x31, 0x34, 0x31, 0x34, 0x39, 0x34, 0x37, 0x35, 0x30, 0x39, 0x38, 0x2c, 0x37, 0x2e, 0x36, 0x39, 0x39, 0x36, 0x34, 0x33, 0x31, 0x33, 0x35, 0x30, 0x37, 0x30, 0x38, 0x30, 0x31, 0x5d, 0x2c, 0x22, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x3a, 0x5b, 0x34, 0x39, 0x33, 0x37, 0x32, 0x39, 0x36, 0x30, 0x30, 0x2c, 0x36, 0x30, 0x31, 0x39, 0x30, 0x34, 0x38, 0x30, 0x30, 0x5d, 0x2c, 0x22, 0x6f, 0x70, 0x65, 0x6e, 0x22, 0x3a, 0x5b, 0x37, 0x2e, 0x36, 0x32, 0x32, 0x34, 0x39, 0x39, 0x39, 0x34, 0x32, 0x37, 0x37, 0x39, 0x35, 0x34, 0x31, 0x2c, 0x37, 0x2e, 0x36, 0x36, 0x34, 0x32, 0x38, 0x36, 0x31, 0x33, 0x36, 0x36, 0x32, 0x37, 0x31, 0x39, 0x37, 0x5d, 0x7d, 0x5d, 0x2c, 0x22, 0x61, 0x64, 0x6a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x22, 0x3a, 0x5b, 0x7b, 0x22, 0x61, 0x64, 0x6a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x22, 0x3a, 0x5b, 0x36, 0x2e, 0x34, 0x35, 0x34, 0x35, 0x30, 0x34, 0x34, 0x38, 0x39, 0x38, 0x39, 0x38, 0x36, 0x38, 0x32, 0x2c, 0x36, 0x2e, 0x34, 0x36, 0x35, 0x36, 0x36, 0x36, 0x32, 0x39, 0x34, 0x30, 0x39, 0x37, 0x39, 0x5d, 0x7d, 0x5d, 0x7d, 0x7d, 0x5d, 0x2c, 0x22, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x3a, 0x6e, 0x75, 0x6c, 0x6c, 0x7d, 0x7d];
_clean_prc_float = randn(5);
_clean_prc_int = rand(Int, 5);
_clean_prc_int_nothing = vcat(nothing,_clean_prc_float);
_clean_prc_float_nothing = vcat(nothing,_clean_prc_int_nothing);
@compile_workload begin
_date_to_unix(Date(2000));
_date_to_unix(DateTime(2000));
Expand Down

0 comments on commit 070fcaf

Please sign in to comment.