e3394292
by Zhou Qiankang at 2026-03-16T23:08:24+01:00
ntdll: Avoid expensive inverted DST check on get_timezone_info() cache hit path.
inverted DST detection (two mktime() calls) out of the cache hit fast path in
get_timezone_info().
Keep the cache key based on the cheap raw bias value and only compute
inverted_dst/adjusted_bias on cache miss. Preserve the inverse DST correctness
fix by still applying adjusted_bias to tzi->Bias in the slow path.
This restores fast-path behavior for frequent GetTimeZoneInformation
callers without regressing inverse DST handling.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59514
Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>