fortplot_windows_performance Module

Windows CI Performance Optimization Module

This module provides Windows-specific performance optimizations to address Issue #188: Slow test execution on Windows CI. It implements strategies to minimize file I/O bottlenecks and provide alternative high-performance backends for CI testing.



Derived Types

type, public ::  performance_config_t

Components

Type Visibility Attributes Name Initial
logical, public :: use_memory_backend = .false.
logical, public :: batch_file_operations = .false.
logical, public :: minimize_io = .false.
integer, public :: max_parallel_files = 1
character(len=256), public :: temp_dir = ""

Functions

public function get_fast_temp_dir() result(temp_dir)

Get Windows performance-optimized temporary directory Priority order for Windows performance: 1. RAMDISK if available (fastest) 2. Local temp directory 3. System temp directory

Arguments

None

Return Value character(len=256)

public function is_ci_environment() result(is_ci)

Check if running in CI environment

Arguments

None

Return Value logical

public function should_use_memory_backend() result(use_memory)

Determine if memory backend should be used for current context

Arguments

None

Return Value logical

public function get_performance_config() result(config)

Get current performance configuration

Arguments

None

Return Value type(performance_config_t)


Subroutines

public subroutine setup_windows_performance()

Configure Windows-specific performance optimizations This should be called at the start of test suites on Windows CI

Arguments

None