One of the major features of upcoming GWT release 2.7 is incremental
compilation in SDM session. Because Buck recompilation is
integrated as HTTP filter on every request, this optimization is
jeopardized: Buck is unaware that a SDM debug session is active.
We cannot entirely skip the Buck integration in SDM debug session
as the site must be initialized at least once.
Pass a Java property from Eclipse launch configuration and maintain
initialization map with initialized flag per user agent for the site.
This improves the time by a factor of 10, ca. 2 sec. for incremental
recompilation on my laptop:
Compilation succeeded -- 1,822s
Linking into
<site>/gerrit-gwtui/com.google.gerrit.GerritGwtUI/compile-5/war/gerrit_ui;
Writing extras to
<site>/gerrit-gwtui/com.google.gerrit.GerritGwtUI/compile-5/extras/gerrit_ui
Link succeeded
Linking succeeded -- 0,190s
2,140s total -- Compile completed
Change-Id: Id2cb19a675d500c04e6748216a77dbb4f26fa1ab