xpenatan/gdx-teavm

Multithreading java to js compile

Closed this issue · 2 comments

About slowly compile in #17

When dragome compile java to js it used only one thread.

Maybe there is possibility enable multithreading dragome compile java to js?

Something is blocking. generating with eclipse is super fast.

Dragome spend many time after write log "ClassPath Order" and before write "Compiling classes..."
And when count of class more than 3000 it spend 3-4 minutes for apply filter for all class in single thread use cpu only 10%.

Maybe internal dragome logic of used ClasspathFilter in DragomeJsCompiler can done multithreading?

And optimise count call many toAccept in
https://github.com/xpenatan/gdx-dragome-backend/blob/master/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java#L122