bytedeco/javacpp

Loading native libraries on Windows 10 takes a long time

Open

#452 opened on Jan 31, 2021

View on GitHub
 (21 comments) (0 reactions) (0 assignees)Java (620 forks)batch import
help wantedquestion

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I am using javacpp/ffmpeg on Windows 10 (2004) and found that loading the native libraries takes longer for Javacpp version 1.5.4 in comparison to 1.5.3. On 1.5.4 it takes roughly 7 seconds to load the libraries, which is in contrast to the 1.5 seconds version 1.5.3 takes.

In the gist below you find timestamped logs of the native libraries being loaded. Without having looked at the loader sources I am surprised to find that more time is spent in loading api-ms-win-crt-*

https://gist.github.com/edwinRNDR/676ea1a75548b31edc07cd699010f75e

Contributor guide