8000 Loader.loadNativeLibraries() taking much longer to run in v9.12 MacOS M1 · Issue #4580 · google/or-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Loader.loadNativeLibraries() taking much longer to run in v9.12 MacOS M1 #4580
Open
@ClaudioConsolmagno

Description

@ClaudioConsolmagno

What version of OR-Tools and what language are you using?
Version: v9.12, v9.13, v9.14 (updated 23-Jun-2025)
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?
MacOS M1
Java corretto 21.0.6 aarch64 (same results on Java 8 and 17)
Have tested on linux and that works fine.

What did you do?
Steps to reproduce the behavior:

plugins {
    id 'java'
}

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

repositories {
    mavenCentral()
}

dependencies {
    implementation('com.google.ortools:ortools-java:9.12.4544')
//    implementation('com.google.ortools:ortools-java:9.11.4210')
}
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.12: Time taken: 13.387 seconds
  • On v9.11: Time taken: 0.948 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0