fortplot_fast_io Module

Fast I/O operations for Windows CI performance optimization

This module provides optimized file I/O operations that can switch between memory-backed and disk-based operations based on the execution environment. Addresses Issue #188: Slow test execution on Windows CI.



Functions

public function fast_file_exists(filename) result(exists)

Fast file existence check (may use memory backend)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename

Return Value logical

public function fast_file_size(filename) result(size)

Fast file size check (may use memory backend)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename

Return Value integer(kind=int64)


Subroutines

public subroutine fast_savefig(fig, filename, use_memory_override)

Fast savefig that can use memory backend when appropriate

Arguments

Type IntentOptional Attributes Name
class(figure_t), intent(inout) :: fig
character(len=*), intent(in) :: filename
logical, intent(in), optional :: use_memory_override

public subroutine enable_fast_io()

Enable fast I/O operations

Arguments

None

public subroutine disable_fast_io()

Disable fast I/O operations

Arguments

None

public subroutine get_fast_io_stats(memory_count, disk_count, memory_time, disk_time)

Get fast I/O statistics

Arguments

Type IntentOptional Attributes Name
integer, intent(out), optional :: memory_count
integer, intent(out), optional :: disk_count
real(kind=real64), intent(out), optional :: memory_time
real(kind=real64), intent(out), optional :: disk_time