-
Notifications
You must be signed in to change notification settings - Fork 55
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
switch to gtk-renderer as default #173
Conversation
+1 This would give us more widespread adoption of Gtk and one can potentially also think about depending on it for layout stuff (e.g. a color bar beside an image). |
For layout things, i'm wondering for some time if Compose.jl could be a candiate. |
There was some discussion about the layout things in #125 |
I'm hesitant to merge this because, at least on my laptop, |
@nolta, agreed that this is a problem, but OTOH...Gtk.jl precompiles nicely with the So it's a bit of dilemma. Obviously users can tweak this themselves. FWIW ImageView is going to make the switch. |
@nolta i made a few fixes to avoid compiling some functions in Gtk in order to drop the load time substantially (in particular, |
Amazing! |
That's great -- it's a lot faster now. But tk seems to have gotten faster too? My |
yes, it seems Tk loads in just over a second on my machine. whereas it takes julia over a second just to load all of the function definitions in the does it sound hopeless yet? nah, just time for some more tricks to close the gap. here's a sneak peak at a performance improvement I'm attempting that is a simple one-liner to enable for any given module:
(and actually, there's another ~1s improvement I could add to Gtk, but it would hit a bug in base and segfault, so I'm still working on that one) edit: I removed some special cases in Gtk, so that I could avoid the segfault, while making a few more tweaks so the net result would be to remove a few more ms. this is without a userimg.jl file, but with adding an extra line of code to Winston, Cairo, Color, and Gtk:
(yesterday, this would have read |
this already happened |
It's about time we switch to a more modern toolkit :)
(I just closed the issue JuliaGraphics/Gtk.jl#103 regarding installing Gtk.jl on a Mac automatically)