Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlatJetBrainsMonoFont.install() is slow 500ms #901

Open
ryanhamilton opened this issue Oct 20, 2024 · 0 comments
Open

FlatJetBrainsMonoFont.install() is slow 500ms #901

ryanhamilton opened this issue Oct 20, 2024 · 0 comments

Comments

@ryanhamilton
Copy link

I try to optimize the startup of my app. Overall my app takes 2000 MilliSeconds, of taht the font install is 350ms.

The simplest example is this Main class below.
Running Time = 488 milliseconds
Comment out .insatll() = <40ms.

import com.formdev.flatlaf.fonts.jetbrains_mono.FlatJetBrainsMonoFont;

public class Main {

	public static void main(String... args) {
        long startT = System.nanoTime();
		FlatJetBrainsMonoFont.install();     
		System.out.println("...");
        System.out.println("Time = " + (System.nanoTime() - startT) / 1000000.0);
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant