google / google/or-tools

Loader.loadNativeLibraries() taking much longer to run in v9.12-v9.15 MacOS M1

Open
#4,580 14 comments 0 reactions 1 assignee Claimed by @Mizux View on GitHub
Bug Lang: Java OS: Mac
Dominant language
C++
Stars
14.1k
Forks
2.5k
Avg merge
8h 39m
Merged PRs (30d)
72

Description

**What version of OR-Tools and what language are you using?**
Version: v9.12, v9.13, v9.14, v9.15 (updated 19-Jan-2026)
Language: Java

**Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)**
Not relevant I think but I use ModelBuilder with SCIP

**What operating system (Linux, Windows, ...) and version?**
Apple M1 Pro Laptop - 16GB RAM - macOS Tahoe 26.2
Java corretto 21.0.9 aarch64 (same results on Java 8, 17 and 25)
Have tested on linux and that works fine.

**What did you do?**
Steps to reproduce the behavior:
```groovy
plugins {
id 'java'
}

group = 'dev.claudio'
version = '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
implementation('com.google.ortools:ortools-java:9.15.6755')
// implementation('com.google.ortools:ortools-java:9.11.4210')
}
```
```java
package dev.claudio;

import com.google.ortools.Loader;

public class Main {
public static void main(String[] args) {
long start = System.currentTimeMillis();
System.out.println("Started");
Loader.loadNativeLibraries();
long timeMs = System.currentTimeMillis() - start;
System.out.printf("Time taken: %.3f seconds%n", timeMs / 1000.0);
}
}
```
- On v9.15: `Time taken: 15.613 seconds`
- On v9.11: `Time taken: 1.066 seconds`

**Anything else we should know about your project / environment**
It doesn't seem like there's a lot of CPU usage. I'm not sure how to analyse profiler data:
![Image](https://github.com/user-attachments/assets/06f1404b-c8fd-46b2-9584-e34928ff9ae3)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.