oai-statsig-python-core 0.25.0rc9__tar.gz → 0.26.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/Cargo.lock +6 -6
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/Cargo.toml +1 -1
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/PKG-INFO +1 -1
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_data_store.py +6 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/Cargo.toml +1 -1
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluator.rs +16 -9
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluator_context.rs +1 -1
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluator_result.rs +103 -0
- oai_statsig_python_core-0.26.0/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer_performance.rs +399 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +46 -2
- oai_statsig_python_core-0.26.0/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +65 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/dynamic_configs_processor.rs +1 -1
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/gcir_process_iter.rs +3 -58
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/mod.rs +1 -0
- oai_statsig_python_core-0.26.0/statsig-rust/src/gcir/secondary_exposure_hashing.rs +280 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/gcir_tests.rs +66 -1
- oai_statsig_python_core-0.25.0rc9/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -51
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/__init__.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/_frozen_json.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/data_store.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/error_boundary.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/evaluation_cache.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/event_logging_adapter.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/observability_client.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/py.typed +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/requirements.txt +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/statsig.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/py_src/statsig_python_core/statsig_types.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/pyproject.toml +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/Cargo.toml +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/README.md +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/build.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/src/lib.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/.gitignore +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/Cargo.toml +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/README.md +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/benchmarks/dynamic_config_value_cache_benchmark.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/benchmarks/user_creation_benchmark.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/benchmarks/user_memory_benchmark.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/event_logging_adapter_base_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/lib.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/pyo_utils.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/safe_gil.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/statsig_base_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/statsig_user_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/event_listener_reentrancy_subprocess.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/fork_runner.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/mock_output_logger.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/profile_util.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_bulk_evaluate_gcir_parity.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_evaluation_cache.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_evaluation_cache_integration.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_evaluation_cache_pyo3.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_event_logging_adapter.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_forking.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_frozen_json.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_observability_client.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_performance.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_sdk_event_emitter.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_sec_expo_as_primary.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_statsig.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-pyo3/tests/utils.py +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/build.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/resources/ip_supalite.table +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/__tests__/statsig_options_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/__tests__/user_value_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/compression/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/console_capture/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/data_store_interface.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/dcs_str.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/delayed_exposure_store.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_logger.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/event_queue/queued_secondary_expo.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/sec_expo_as_primary_experiment.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/evaluation_plan.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/gcir/timing.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/global_configs.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/hashing/ahash.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/hashing/djb2.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/hashing/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/init_details.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/initialize_response.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/instance_registry.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_string.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/__tests__/fixtures/interned_store_v1.mmap +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/__tests__/interned_store_mmap_fetch_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/interned_values/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/lib.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/logging_utils.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/macros.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/http_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/network_client.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/network_error.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/observability/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/output_logger.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/spec_store.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_err.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_global.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_metadata.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_options.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_runtime.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_types.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/statsig_types_raw.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/fast_statsig_user.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/into_optional.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/statsig_user.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/unit_id.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/user_data.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/user/user_value.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/utils/mod.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/src/value_parsing.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/check_gate_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/company_id_list +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_error.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/delayed_exposure_bench.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/exposure_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/flushing_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/gcir_plan_expansion_bench.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/global_configs_test.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/network_client_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/perf_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/statsig_user_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/substring_search_bench.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/user_json_tests.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/helpers.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/tests/utils/mod.rs +0 -0
|
@@ -1722,7 +1722,7 @@ dependencies = [
|
|
|
1722
1722
|
|
|
1723
1723
|
[[package]]
|
|
1724
1724
|
name = "oai-statsig-grpc"
|
|
1725
|
-
version = "0.
|
|
1725
|
+
version = "0.26.0"
|
|
1726
1726
|
dependencies = [
|
|
1727
1727
|
"async-trait",
|
|
1728
1728
|
"chrono",
|
|
@@ -1737,7 +1737,7 @@ dependencies = [
|
|
|
1737
1737
|
|
|
1738
1738
|
[[package]]
|
|
1739
1739
|
name = "oai-statsig-rust"
|
|
1740
|
-
version = "0.
|
|
1740
|
+
version = "0.26.0"
|
|
1741
1741
|
dependencies = [
|
|
1742
1742
|
"ahash",
|
|
1743
1743
|
"arc-swap",
|
|
@@ -3012,7 +3012,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
3012
3012
|
|
|
3013
3013
|
[[package]]
|
|
3014
3014
|
name = "statsig-node"
|
|
3015
|
-
version = "0.
|
|
3015
|
+
version = "0.26.0"
|
|
3016
3016
|
dependencies = [
|
|
3017
3017
|
"async-trait",
|
|
3018
3018
|
"napi",
|
|
@@ -3027,7 +3027,7 @@ dependencies = [
|
|
|
3027
3027
|
|
|
3028
3028
|
[[package]]
|
|
3029
3029
|
name = "statsig-pyo3"
|
|
3030
|
-
version = "0.
|
|
3030
|
+
version = "0.26.0"
|
|
3031
3031
|
dependencies = [
|
|
3032
3032
|
"async-trait",
|
|
3033
3033
|
"lazy_static",
|
|
@@ -3042,7 +3042,7 @@ dependencies = [
|
|
|
3042
3042
|
|
|
3043
3043
|
[[package]]
|
|
3044
3044
|
name = "statsig_elixir"
|
|
3045
|
-
version = "0.
|
|
3045
|
+
version = "0.26.0"
|
|
3046
3046
|
dependencies = [
|
|
3047
3047
|
"async-trait",
|
|
3048
3048
|
"oai-statsig-rust",
|
|
@@ -3055,7 +3055,7 @@ dependencies = [
|
|
|
3055
3055
|
|
|
3056
3056
|
[[package]]
|
|
3057
3057
|
name = "statsig_ffi"
|
|
3058
|
-
version = "0.
|
|
3058
|
+
version = "0.26.0"
|
|
3059
3059
|
dependencies = [
|
|
3060
3060
|
"async-trait",
|
|
3061
3061
|
"cbindgen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oai_statsig_python_core
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -222,6 +222,12 @@ def test_data_store_usage_get(statsig_setup):
|
|
|
222
222
|
assert gate.details.reason == "Adapter(DataStore):Recognized"
|
|
223
223
|
assert gate.value == True
|
|
224
224
|
assert gate.details.lcut == known_lcut
|
|
225
|
+
|
|
226
|
+
for _ in range(100):
|
|
227
|
+
if data_store.get_called_count >= 2:
|
|
228
|
+
break
|
|
229
|
+
sleep(0.05)
|
|
230
|
+
|
|
225
231
|
assert data_store.get_called_count > 1
|
|
226
232
|
|
|
227
233
|
|
{oai_statsig_python_core-0.25.0rc9 → oai_statsig_python_core-0.26.0}/statsig-rust/Cargo.toml
RENAMED
|
@@ -44,7 +44,7 @@ serde_json = { version = "1.0.143", features = [
|
|
|
44
44
|
] }
|
|
45
45
|
serde_with = "3.4.0"
|
|
46
46
|
sha2 = "0.10.8"
|
|
47
|
-
oai-statsig-grpc = { path = "../statsig-grpc", version = "0.
|
|
47
|
+
oai-statsig-grpc = { path = "../statsig-grpc", version = "0.26.0", optional = true }
|
|
48
48
|
simple_logger = { version = "5.0.0" }
|
|
49
49
|
tempfile = "3.8.1"
|
|
50
50
|
tokio = { version = "1.39.1", features = ["full"] }
|
|
@@ -166,21 +166,22 @@ fn new_layer_eval<'a>(
|
|
|
166
166
|
) -> Result<Recognition, StatsigErr> {
|
|
167
167
|
let mut has_passed_rule = false;
|
|
168
168
|
let mut passed = false;
|
|
169
|
-
let mut rule_id
|
|
169
|
+
let mut rule_id = Some(InternedString::default_rule_id());
|
|
170
170
|
let mut delegate_name: Option<InternedString> = None;
|
|
171
171
|
let mut rule_ids: HashMap<InternedString, InternedString> = HashMap::new();
|
|
172
172
|
let mut value: HashMap<String, Value> = HashMap::new();
|
|
173
173
|
let mut group_name: Option<InternedString> = None;
|
|
174
174
|
let mut is_experiment_group = false;
|
|
175
|
+
let mut is_experiment_active = false;
|
|
175
176
|
let mut explicit_parameters: Option<ExplicitParameters> = None;
|
|
176
177
|
let mut secondary_exposures: Vec<SecondaryExposure> = Vec::new();
|
|
177
178
|
let mut undelegated_secondary_exposures: Vec<SecondaryExposure> = Vec::new();
|
|
178
179
|
|
|
179
180
|
for rule in &spec.rules {
|
|
180
181
|
evaluate_rule(ctx, rule)?;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
let rule_secondary_exposures = std::mem::take(&mut ctx.result.secondary_exposures);
|
|
183
|
+
secondary_exposures.extend(rule_secondary_exposures.iter().cloned());
|
|
184
|
+
undelegated_secondary_exposures.extend(rule_secondary_exposures);
|
|
184
185
|
|
|
185
186
|
if ctx.result.unsupported {
|
|
186
187
|
return Ok(Recognition::Recognized);
|
|
@@ -217,15 +218,21 @@ fn new_layer_eval<'a>(
|
|
|
217
218
|
continue;
|
|
218
219
|
}
|
|
219
220
|
|
|
220
|
-
|
|
221
|
+
let delegate_rule_id = ctx
|
|
222
|
+
.result
|
|
223
|
+
.rule_id
|
|
224
|
+
.clone()
|
|
225
|
+
.unwrap_or_else(InternedString::default_rule_id);
|
|
226
|
+
update_parameter_values(&mut value, &mut rule_ids, delegate_value, &delegate_rule_id);
|
|
221
227
|
|
|
222
228
|
secondary_exposures.append(&mut ctx.result.secondary_exposures);
|
|
223
229
|
ctx.result.secondary_exposures.clear();
|
|
224
230
|
passed = ctx.result.bool_value;
|
|
225
231
|
delegate_name = ctx.result.config_delegate.clone();
|
|
226
232
|
group_name = ctx.result.group_name.clone();
|
|
227
|
-
rule_id = Some(
|
|
228
|
-
is_experiment_group =
|
|
233
|
+
rule_id = Some(delegate_rule_id);
|
|
234
|
+
is_experiment_group = ctx.result.is_experiment_group;
|
|
235
|
+
is_experiment_active = ctx.result.is_experiment_active;
|
|
229
236
|
explicit_parameters = ctx.result.explicit_parameters.clone();
|
|
230
237
|
} else {
|
|
231
238
|
passed = ctx.result.bool_value;
|
|
@@ -247,10 +254,10 @@ fn new_layer_eval<'a>(
|
|
|
247
254
|
ctx.result.bool_value = passed;
|
|
248
255
|
ctx.result.config_delegate = delegate_name;
|
|
249
256
|
ctx.result.group_name = group_name;
|
|
250
|
-
ctx.result.rule_id = rule_id
|
|
257
|
+
ctx.result.rule_id = rule_id;
|
|
251
258
|
ctx.result.json_value = Some(DynamicReturnable::from_map(value));
|
|
252
259
|
ctx.result.is_experiment_group = is_experiment_group;
|
|
253
|
-
ctx.result.is_experiment_active =
|
|
260
|
+
ctx.result.is_experiment_active = is_experiment_active;
|
|
254
261
|
ctx.result.explicit_parameters = explicit_parameters;
|
|
255
262
|
ctx.result.secondary_exposures = secondary_exposures;
|
|
256
263
|
ctx.result.undelegated_secondary_exposures = Some(undelegated_secondary_exposures);
|
|
@@ -72,7 +72,7 @@ impl<'a> EvaluatorContext<'a> {
|
|
|
72
72
|
|
|
73
73
|
pub fn reset_result(&mut self) {
|
|
74
74
|
self.nested_count = 0;
|
|
75
|
-
self.result
|
|
75
|
+
self.result.clear_for_reuse();
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
pub fn finalize_evaluation(&mut self, spec: &Spec, rule: Option<&Rule>) {
|
|
@@ -56,6 +56,33 @@ pub struct EvaluatorResult {
|
|
|
56
56
|
pub parameter_rule_ids: Option<HashMap<InternedString, InternedString>>,
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
impl EvaluatorResult {
|
|
60
|
+
pub fn clear_for_reuse(&mut self) {
|
|
61
|
+
self.name = None;
|
|
62
|
+
self.bool_value = false;
|
|
63
|
+
self.unsupported = false;
|
|
64
|
+
self.is_experiment_group = false;
|
|
65
|
+
self.is_experiment_active = false;
|
|
66
|
+
self.is_in_layer = false;
|
|
67
|
+
self.id_type = None;
|
|
68
|
+
self.json_value = None;
|
|
69
|
+
self.rule_id = None;
|
|
70
|
+
self.rule_id_suffix = None;
|
|
71
|
+
self.group_name = None;
|
|
72
|
+
self.explicit_parameters = None;
|
|
73
|
+
self.config_delegate = None;
|
|
74
|
+
self.secondary_exposures.clear();
|
|
75
|
+
self.undelegated_secondary_exposures = None;
|
|
76
|
+
self.override_reason = None;
|
|
77
|
+
self.version = None;
|
|
78
|
+
self.sampling_rate = None;
|
|
79
|
+
self.forward_all_exposures = None;
|
|
80
|
+
self.override_config_name = None;
|
|
81
|
+
self.has_seen_analytical_gates = None;
|
|
82
|
+
self.parameter_rule_ids = None;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
59
86
|
fn get_is_user_in_experiment(result: &EvaluatorResult) -> bool {
|
|
60
87
|
result.is_experiment_group
|
|
61
88
|
&& result
|
|
@@ -731,3 +758,79 @@ fn create_suffixed_rule_id(
|
|
|
731
758
|
None => rule_id.cloned().unwrap_or_default(),
|
|
732
759
|
}
|
|
733
760
|
}
|
|
761
|
+
|
|
762
|
+
#[cfg(test)]
|
|
763
|
+
mod tests {
|
|
764
|
+
use super::*;
|
|
765
|
+
|
|
766
|
+
#[test]
|
|
767
|
+
fn clear_for_reuse_resets_fields_and_keeps_secondary_exposure_capacity() {
|
|
768
|
+
let mut result = EvaluatorResult {
|
|
769
|
+
name: Some(InternedString::from_str_ref("a_gate")),
|
|
770
|
+
bool_value: true,
|
|
771
|
+
unsupported: true,
|
|
772
|
+
is_experiment_group: true,
|
|
773
|
+
is_experiment_active: true,
|
|
774
|
+
is_in_layer: true,
|
|
775
|
+
id_type: Some(InternedString::from_str_ref("stableID")),
|
|
776
|
+
json_value: Some(DynamicReturnable::from_bool(true)),
|
|
777
|
+
rule_id: Some(InternedString::from_str_ref("rule")),
|
|
778
|
+
rule_id_suffix: Some("suffix"),
|
|
779
|
+
group_name: Some(InternedString::from_str_ref("group")),
|
|
780
|
+
explicit_parameters: Some(ExplicitParameters::from_vec(vec!["param".to_string()])),
|
|
781
|
+
config_delegate: Some(InternedString::from_str_ref("delegate")),
|
|
782
|
+
secondary_exposures: Vec::with_capacity(8),
|
|
783
|
+
undelegated_secondary_exposures: Some(vec![SecondaryExposure {
|
|
784
|
+
gate: InternedString::from_str_ref("undelegated_gate"),
|
|
785
|
+
gate_value: InternedString::from_bool(true),
|
|
786
|
+
rule_id: InternedString::from_str_ref("undelegated_rule"),
|
|
787
|
+
}]),
|
|
788
|
+
override_reason: Some("override"),
|
|
789
|
+
version: Some(1),
|
|
790
|
+
sampling_rate: Some(10),
|
|
791
|
+
forward_all_exposures: Some(true),
|
|
792
|
+
override_config_name: Some(InternedString::from_str_ref("override_config")),
|
|
793
|
+
has_seen_analytical_gates: Some(true),
|
|
794
|
+
parameter_rule_ids: Some(HashMap::from([(
|
|
795
|
+
InternedString::from_str_ref("param"),
|
|
796
|
+
InternedString::from_str_ref("rule"),
|
|
797
|
+
)])),
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
result.secondary_exposures.push(SecondaryExposure {
|
|
801
|
+
gate: InternedString::from_str_ref("gate"),
|
|
802
|
+
gate_value: InternedString::from_bool(false),
|
|
803
|
+
rule_id: InternedString::from_str_ref("rule"),
|
|
804
|
+
});
|
|
805
|
+
let secondary_exposure_capacity = result.secondary_exposures.capacity();
|
|
806
|
+
|
|
807
|
+
result.clear_for_reuse();
|
|
808
|
+
|
|
809
|
+
assert!(result.name.is_none());
|
|
810
|
+
assert!(!result.bool_value);
|
|
811
|
+
assert!(!result.unsupported);
|
|
812
|
+
assert!(!result.is_experiment_group);
|
|
813
|
+
assert!(!result.is_experiment_active);
|
|
814
|
+
assert!(!result.is_in_layer);
|
|
815
|
+
assert!(result.id_type.is_none());
|
|
816
|
+
assert!(result.json_value.is_none());
|
|
817
|
+
assert!(result.rule_id.is_none());
|
|
818
|
+
assert!(result.rule_id_suffix.is_none());
|
|
819
|
+
assert!(result.group_name.is_none());
|
|
820
|
+
assert!(result.explicit_parameters.is_none());
|
|
821
|
+
assert!(result.config_delegate.is_none());
|
|
822
|
+
assert!(result.secondary_exposures.is_empty());
|
|
823
|
+
assert_eq!(
|
|
824
|
+
result.secondary_exposures.capacity(),
|
|
825
|
+
secondary_exposure_capacity
|
|
826
|
+
);
|
|
827
|
+
assert!(result.undelegated_secondary_exposures.is_none());
|
|
828
|
+
assert!(result.override_reason.is_none());
|
|
829
|
+
assert!(result.version.is_none());
|
|
830
|
+
assert!(result.sampling_rate.is_none());
|
|
831
|
+
assert!(result.forward_all_exposures.is_none());
|
|
832
|
+
assert!(result.override_config_name.is_none());
|
|
833
|
+
assert!(result.has_seen_analytical_gates.is_none());
|
|
834
|
+
assert!(result.parameter_rule_ids.is_none());
|
|
835
|
+
}
|
|
836
|
+
}
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
use std::{
|
|
2
|
+
collections::VecDeque,
|
|
3
|
+
hint::black_box,
|
|
4
|
+
time::{Duration, Instant},
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
use memchr::memchr2;
|
|
8
|
+
|
|
9
|
+
use super::{Token, TokenWindow, Tokenizer, TokenizerResult};
|
|
10
|
+
|
|
11
|
+
const CORPUS: &str = include_str!("../../../../../tests/data/test_user_agents.txt");
|
|
12
|
+
const EDGE_CASES: &[&str] = &[
|
|
13
|
+
"",
|
|
14
|
+
" ",
|
|
15
|
+
";",
|
|
16
|
+
" leading;;and repeated;delimiters ",
|
|
17
|
+
"Mozilla/5.0\t(Windows NT 10.0)\nChrome/134.0",
|
|
18
|
+
"机器人/1.0 (兼容; Android 14; 设备 🚀) crawler/2.0",
|
|
19
|
+
"Mözilla/5.0 (X11; Línux x86_64) Brøwser/1.2.3",
|
|
20
|
+
"e\u{301}/1.0; café/2.0; 東京/3.0",
|
|
21
|
+
"non\u{a0}breaking\u{a0}spaces/1.0; regular delimiter",
|
|
22
|
+
"quoted/1.0 (\"odd; value\") +bot/3.0",
|
|
23
|
+
";;;; ; ; trailing;",
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
#[test]
|
|
27
|
+
fn memchr_window_preserves_legacy_tokenizer_results() {
|
|
28
|
+
for user_agent in corpus().into_iter().chain(EDGE_CASES.iter().copied()) {
|
|
29
|
+
assert_equivalent(user_agent);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
let long_odd_input = format!(
|
|
33
|
+
"{}; {};{} {}",
|
|
34
|
+
"é".repeat(400),
|
|
35
|
+
"token".repeat(100),
|
|
36
|
+
"🚀".repeat(200),
|
|
37
|
+
"tail".repeat(100)
|
|
38
|
+
);
|
|
39
|
+
assert_equivalent(&long_odd_input);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#[test]
|
|
43
|
+
#[ignore = "manual benchmark; run with --release --ignored --nocapture"]
|
|
44
|
+
fn benchmark_memchr_window_against_legacy_tokenizer() {
|
|
45
|
+
let corpus = corpus();
|
|
46
|
+
let samples = std::env::var("UA_BENCH_SAMPLES")
|
|
47
|
+
.ok()
|
|
48
|
+
.and_then(|value| value.parse().ok())
|
|
49
|
+
.unwrap_or(31);
|
|
50
|
+
let warmup = std::env::var("UA_BENCH_WARMUP")
|
|
51
|
+
.ok()
|
|
52
|
+
.and_then(|value| value.parse().ok())
|
|
53
|
+
.unwrap_or(5);
|
|
54
|
+
|
|
55
|
+
for _ in 0..warmup {
|
|
56
|
+
black_box(run_candidate(&corpus));
|
|
57
|
+
black_box(run_memchr_deque(&corpus));
|
|
58
|
+
black_box(run_std_array(&corpus));
|
|
59
|
+
black_box(run_legacy(&corpus));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let mut candidate = Vec::with_capacity(samples);
|
|
63
|
+
let mut memchr_deque = Vec::with_capacity(samples);
|
|
64
|
+
let mut std_array = Vec::with_capacity(samples);
|
|
65
|
+
let mut legacy = Vec::with_capacity(samples);
|
|
66
|
+
for sample in 0..samples {
|
|
67
|
+
match sample % 4 {
|
|
68
|
+
0 => {
|
|
69
|
+
candidate.push(measure(|| run_candidate(&corpus)));
|
|
70
|
+
memchr_deque.push(measure(|| run_memchr_deque(&corpus)));
|
|
71
|
+
std_array.push(measure(|| run_std_array(&corpus)));
|
|
72
|
+
legacy.push(measure(|| run_legacy(&corpus)));
|
|
73
|
+
}
|
|
74
|
+
1 => {
|
|
75
|
+
memchr_deque.push(measure(|| run_memchr_deque(&corpus)));
|
|
76
|
+
std_array.push(measure(|| run_std_array(&corpus)));
|
|
77
|
+
legacy.push(measure(|| run_legacy(&corpus)));
|
|
78
|
+
candidate.push(measure(|| run_candidate(&corpus)));
|
|
79
|
+
}
|
|
80
|
+
2 => {
|
|
81
|
+
std_array.push(measure(|| run_std_array(&corpus)));
|
|
82
|
+
legacy.push(measure(|| run_legacy(&corpus)));
|
|
83
|
+
candidate.push(measure(|| run_candidate(&corpus)));
|
|
84
|
+
memchr_deque.push(measure(|| run_memchr_deque(&corpus)));
|
|
85
|
+
}
|
|
86
|
+
_ => {
|
|
87
|
+
legacy.push(measure(|| run_legacy(&corpus)));
|
|
88
|
+
candidate.push(measure(|| run_candidate(&corpus)));
|
|
89
|
+
memchr_deque.push(measure(|| run_memchr_deque(&corpus)));
|
|
90
|
+
std_array.push(measure(|| run_std_array(&corpus)));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
let candidate_stats = BenchStats::new(candidate, corpus.len());
|
|
96
|
+
let memchr_deque_stats = BenchStats::new(memchr_deque, corpus.len());
|
|
97
|
+
let std_array_stats = BenchStats::new(std_array, corpus.len());
|
|
98
|
+
let legacy_stats = BenchStats::new(legacy, corpus.len());
|
|
99
|
+
|
|
100
|
+
println!(
|
|
101
|
+
"user_agent_tokenizer_bench corpus={} samples={} warmup={}",
|
|
102
|
+
corpus.len(),
|
|
103
|
+
samples,
|
|
104
|
+
warmup
|
|
105
|
+
);
|
|
106
|
+
legacy_stats.print("legacy std::str::split");
|
|
107
|
+
memchr_deque_stats.print("memchr2 + VecDeque");
|
|
108
|
+
std_array_stats.print("std::split + array");
|
|
109
|
+
candidate_stats.print("memchr2 + array");
|
|
110
|
+
println!(
|
|
111
|
+
"median_saved_pct memchr_only={:.2}% array_only={:.2}% combined={:.2}%",
|
|
112
|
+
legacy_stats.saved_pct(&memchr_deque_stats),
|
|
113
|
+
legacy_stats.saved_pct(&std_array_stats),
|
|
114
|
+
legacy_stats.saved_pct(&candidate_stats),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
fn corpus() -> Vec<&'static str> {
|
|
119
|
+
CORPUS
|
|
120
|
+
.lines()
|
|
121
|
+
.skip(1)
|
|
122
|
+
.filter_map(|line| line.split_once('|').map(|(user_agent, _)| user_agent))
|
|
123
|
+
.chain(EDGE_CASES.iter().copied())
|
|
124
|
+
.collect()
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
fn assert_equivalent(input: &str) {
|
|
128
|
+
let candidate = Tokenizer::run(input);
|
|
129
|
+
let memchr_deque =
|
|
130
|
+
Tokenizer::run_with_window(DequeWindow::new(TestAsciiDelimiterSplit::new(input)));
|
|
131
|
+
let std_array = Tokenizer::run_with_window(ArrayWindow::new(input.split([';', ' '])));
|
|
132
|
+
let legacy = Tokenizer::run_with_window(DequeWindow::new(input.split([';', ' '])));
|
|
133
|
+
|
|
134
|
+
assert_result_eq(&candidate, &legacy, input);
|
|
135
|
+
assert_result_eq(&memchr_deque, &legacy, input);
|
|
136
|
+
assert_result_eq(&std_array, &legacy, input);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
fn assert_result_eq(candidate: &TokenizerResult<'_>, legacy: &TokenizerResult<'_>, input: &str) {
|
|
140
|
+
assert_eq!(candidate.position, legacy.position, "input: {input:?}");
|
|
141
|
+
assert_eq!(
|
|
142
|
+
candidate.tokens.len(),
|
|
143
|
+
legacy.tokens.len(),
|
|
144
|
+
"input: {input:?}"
|
|
145
|
+
);
|
|
146
|
+
for (candidate, legacy) in candidate.tokens.iter().zip(&legacy.tokens) {
|
|
147
|
+
assert_eq!(candidate.position, legacy.position, "input: {input:?}");
|
|
148
|
+
assert_eq!(candidate.tag, legacy.tag, "input: {input:?}");
|
|
149
|
+
assert_eq!(candidate.version, legacy.version, "input: {input:?}");
|
|
150
|
+
}
|
|
151
|
+
assert_token_eq(
|
|
152
|
+
candidate.possible_os_token.as_ref(),
|
|
153
|
+
legacy.possible_os_token.as_ref(),
|
|
154
|
+
input,
|
|
155
|
+
);
|
|
156
|
+
assert_token_eq(
|
|
157
|
+
candidate.possible_browser_token.as_ref(),
|
|
158
|
+
legacy.possible_browser_token.as_ref(),
|
|
159
|
+
input,
|
|
160
|
+
);
|
|
161
|
+
assert_eq!(candidate.linux_hint, legacy.linux_hint, "input: {input:?}");
|
|
162
|
+
assert_eq!(candidate.ios_hint, legacy.ios_hint, "input: {input:?}");
|
|
163
|
+
assert_eq!(candidate.macos_hint, legacy.macos_hint, "input: {input:?}");
|
|
164
|
+
assert_eq!(
|
|
165
|
+
candidate.windows_hint, legacy.windows_hint,
|
|
166
|
+
"input: {input:?}"
|
|
167
|
+
);
|
|
168
|
+
assert_eq!(
|
|
169
|
+
candidate.mobile_hint, legacy.mobile_hint,
|
|
170
|
+
"input: {input:?}"
|
|
171
|
+
);
|
|
172
|
+
assert_eq!(
|
|
173
|
+
candidate.safari_hint, legacy.safari_hint,
|
|
174
|
+
"input: {input:?}"
|
|
175
|
+
);
|
|
176
|
+
assert_eq!(
|
|
177
|
+
candidate.playstation_hint, legacy.playstation_hint,
|
|
178
|
+
"input: {input:?}"
|
|
179
|
+
);
|
|
180
|
+
assert_eq!(
|
|
181
|
+
candidate.huawei_hint, legacy.huawei_hint,
|
|
182
|
+
"input: {input:?}"
|
|
183
|
+
);
|
|
184
|
+
assert_eq!(
|
|
185
|
+
candidate.cfnetwork_hint, legacy.cfnetwork_hint,
|
|
186
|
+
"input: {input:?}"
|
|
187
|
+
);
|
|
188
|
+
assert_eq!(
|
|
189
|
+
candidate.crawler_hint, legacy.crawler_hint,
|
|
190
|
+
"input: {input:?}"
|
|
191
|
+
);
|
|
192
|
+
assert_eq!(
|
|
193
|
+
candidate.bot_detected, legacy.bot_detected,
|
|
194
|
+
"input: {input:?}"
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
fn assert_token_eq(candidate: Option<&Token<'_>>, legacy: Option<&Token<'_>>, input: &str) {
|
|
199
|
+
assert_eq!(
|
|
200
|
+
candidate.map(|token| (token.position, token.tag, token.version)),
|
|
201
|
+
legacy.map(|token| (token.position, token.tag, token.version)),
|
|
202
|
+
"input: {input:?}"
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
fn run_candidate(corpus: &[&str]) -> usize {
|
|
207
|
+
run(corpus, Tokenizer::run)
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
fn run_legacy(corpus: &[&str]) -> usize {
|
|
211
|
+
run(corpus, |user_agent| {
|
|
212
|
+
Tokenizer::run_with_window(DequeWindow::new(user_agent.split([';', ' '])))
|
|
213
|
+
})
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
fn run_memchr_deque(corpus: &[&str]) -> usize {
|
|
217
|
+
run(corpus, |user_agent| {
|
|
218
|
+
Tokenizer::run_with_window(DequeWindow::new(TestAsciiDelimiterSplit::new(user_agent)))
|
|
219
|
+
})
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
fn run_std_array(corpus: &[&str]) -> usize {
|
|
223
|
+
run(corpus, |user_agent| {
|
|
224
|
+
Tokenizer::run_with_window(ArrayWindow::new(user_agent.split([';', ' '])))
|
|
225
|
+
})
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
struct DequeWindow<'a, I> {
|
|
229
|
+
iter: I,
|
|
230
|
+
window: VecDeque<&'a str>,
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
impl<'a, I: Iterator<Item = &'a str>> DequeWindow<'a, I> {
|
|
234
|
+
fn new(mut iter: I) -> Self {
|
|
235
|
+
let mut window = VecDeque::new();
|
|
236
|
+
for _ in 0..4 {
|
|
237
|
+
if let Some(word) = iter.next() {
|
|
238
|
+
window.push_back(word);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
Self { iter, window }
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
impl<'a, I: Iterator<Item = &'a str>> TokenWindow<'a> for DequeWindow<'a, I> {
|
|
247
|
+
#[allow(clippy::get_first)]
|
|
248
|
+
fn get_window(
|
|
249
|
+
&self,
|
|
250
|
+
) -> (
|
|
251
|
+
Option<&'a str>,
|
|
252
|
+
Option<&'a str>,
|
|
253
|
+
Option<&'a str>,
|
|
254
|
+
Option<&'a str>,
|
|
255
|
+
) {
|
|
256
|
+
(
|
|
257
|
+
self.window.get(0).copied(),
|
|
258
|
+
self.window.get(1).copied(),
|
|
259
|
+
self.window.get(2).copied(),
|
|
260
|
+
self.window.get(3).copied(),
|
|
261
|
+
)
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
fn slide_window_by(&mut self, n: usize) {
|
|
265
|
+
for _ in 0..n {
|
|
266
|
+
self.window.pop_front();
|
|
267
|
+
if let Some(word) = self.iter.next() {
|
|
268
|
+
self.window.push_back(word);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
fn is_empty(&self) -> bool {
|
|
274
|
+
self.window.is_empty()
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
struct ArrayWindow<'a, I> {
|
|
279
|
+
iter: I,
|
|
280
|
+
window: [Option<&'a str>; 4],
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
impl<'a, I: Iterator<Item = &'a str>> ArrayWindow<'a, I> {
|
|
284
|
+
fn new(mut iter: I) -> Self {
|
|
285
|
+
let window = std::array::from_fn(|_| iter.next());
|
|
286
|
+
Self { iter, window }
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
impl<'a, I: Iterator<Item = &'a str>> TokenWindow<'a> for ArrayWindow<'a, I> {
|
|
291
|
+
fn get_window(
|
|
292
|
+
&self,
|
|
293
|
+
) -> (
|
|
294
|
+
Option<&'a str>,
|
|
295
|
+
Option<&'a str>,
|
|
296
|
+
Option<&'a str>,
|
|
297
|
+
Option<&'a str>,
|
|
298
|
+
) {
|
|
299
|
+
let [curr, next1, next2, next3] = self.window;
|
|
300
|
+
(curr, next1, next2, next3)
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
fn slide_window_by(&mut self, n: usize) {
|
|
304
|
+
for _ in 0..n {
|
|
305
|
+
self.window.rotate_left(1);
|
|
306
|
+
self.window[3] = self.iter.next();
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
fn is_empty(&self) -> bool {
|
|
311
|
+
self.window[0].is_none()
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
struct TestAsciiDelimiterSplit<'a> {
|
|
316
|
+
remainder: Option<&'a str>,
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
impl<'a> TestAsciiDelimiterSplit<'a> {
|
|
320
|
+
fn new(input: &'a str) -> Self {
|
|
321
|
+
Self {
|
|
322
|
+
remainder: Some(input),
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
impl<'a> Iterator for TestAsciiDelimiterSplit<'a> {
|
|
328
|
+
type Item = &'a str;
|
|
329
|
+
|
|
330
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
331
|
+
let remainder = self.remainder.take()?;
|
|
332
|
+
let Some(delimiter) = memchr2(b';', b' ', remainder.as_bytes()) else {
|
|
333
|
+
return Some(remainder);
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
let (word, rest) = remainder.split_at(delimiter);
|
|
337
|
+
self.remainder = Some(&rest[1..]);
|
|
338
|
+
Some(word)
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
fn run<'a>(
|
|
343
|
+
corpus: &'a [&'a str],
|
|
344
|
+
mut tokenize: impl FnMut(&'a str) -> TokenizerResult<'a>,
|
|
345
|
+
) -> usize {
|
|
346
|
+
let mut checksum = 0;
|
|
347
|
+
for user_agent in corpus {
|
|
348
|
+
let result = black_box(tokenize(black_box(user_agent)));
|
|
349
|
+
checksum = black_box(
|
|
350
|
+
checksum
|
|
351
|
+
^ result.tokens.len()
|
|
352
|
+
^ result.position
|
|
353
|
+
^ usize::from(result.bot_detected)
|
|
354
|
+
^ usize::from(result.crawler_hint),
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
checksum
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
fn measure(mut run: impl FnMut() -> usize) -> Duration {
|
|
361
|
+
let start = Instant::now();
|
|
362
|
+
black_box(run());
|
|
363
|
+
start.elapsed()
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
struct BenchStats {
|
|
367
|
+
median: f64,
|
|
368
|
+
p95: f64,
|
|
369
|
+
median_ns_per_user_agent: f64,
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
impl BenchStats {
|
|
373
|
+
fn new(mut samples: Vec<Duration>, corpus_len: usize) -> Self {
|
|
374
|
+
samples.sort_unstable();
|
|
375
|
+
let median = percentile(&samples, 0.50).as_secs_f64() * 1_000.0;
|
|
376
|
+
let p95 = percentile(&samples, 0.95).as_secs_f64() * 1_000.0;
|
|
377
|
+
Self {
|
|
378
|
+
median,
|
|
379
|
+
p95,
|
|
380
|
+
median_ns_per_user_agent: median * 1_000_000.0 / corpus_len as f64,
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
fn print(&self, name: &str) {
|
|
385
|
+
println!(
|
|
386
|
+
"{name:<24} median={:>9.3}ms p95={:>9.3}ms median={:>9.1}ns/ua",
|
|
387
|
+
self.median, self.p95, self.median_ns_per_user_agent
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
fn saved_pct(&self, candidate: &Self) -> f64 {
|
|
392
|
+
(self.median - candidate.median) / self.median * 100.0
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
fn percentile(samples: &[Duration], percentile: f64) -> Duration {
|
|
397
|
+
let index = ((samples.len() - 1) as f64 * percentile).round() as usize;
|
|
398
|
+
samples[index]
|
|
399
|
+
}
|