Skip to content

Commit

Permalink
Commit dedicated to accelerate the startup sequence of GAMA (by ~2x)
Browse files Browse the repository at this point in the history
- Simplifies the registration and organisation of types, with a much
simpler algorithm to build the hierarchy (Types.java).
- Allows the creation of operators' signatures directly from Java
classes
- Consolidates the various artefacts in GAML.java (instead of
AbstractGamlAdditions)
- Moves utility methods as default methods in IGamlAdditions
- Consolidates similar methods (like _operator()) in
AbstractGamlAdditions, and removes _unary() and _binary()
- Simplifies GamaGetter by removing its subinterfaces
- Introduces a NULL IValidator as the default
- Avoids initializing Types twice in GamaBundleLoader
- Removes description factories from the GAML additions (now hardcoded)
- Remove the generation of xmi files from headless options
- Drastically simplifies BuiltInGlobalScopeProvider and removes the
documentation from the xmi files
- Loads physics native libraries only on demand
- Modifies the annotation processor to comply with the new API of
AbstractGamlAdditions
  • Loading branch information
AlexisDrogoul committed Jan 22, 2022
1 parent 377fb00 commit a962a94
Show file tree
Hide file tree
Showing 77 changed files with 4,333 additions and 3,199 deletions.
19 changes: 7 additions & 12 deletions msi.gama.core/src/msi/gama/common/Activator.java
@@ -1,12 +1,12 @@
/*******************************************************************************************************
*
* msi.gama.common.Activator.java, in plugin msi.gama.core,
* is part of the source code of the GAMA modeling and simulation platform (v. 1.8.1)
* msi.gama.common.Activator.java, in plugin msi.gama.core, is part of the source code of the GAMA modeling and
* simulation platform (v. 1.8.1)
*
* (c) 2007-2020 UMI 209 UMMISCO IRD/SU & Partners
*
* Visit https://github.com/gama-platform/gama for license information and contacts.
*
*
********************************************************************************************************/
package msi.gama.common;

Expand All @@ -22,18 +22,13 @@ public class Activator implements BundleActivator {
@Override
public void start(final BundleContext context) throws Exception {
/* Early build of the contributions made by plugins to GAMA */
// new Thread(() -> {
GamaBundleLoader.preBuildContributions();
GamaExecutorService.reset();
Dates.initialize();
// }).start();
GamaBundleLoader.preBuildContributions();
GamaExecutorService.reset();
Dates.initialize();

}

@Override
public void stop(final BundleContext context) throws Exception {
// TODO Auto-generated method stub

}
public void stop(final BundleContext context) throws Exception {}

}
Expand Up @@ -3,7 +3,7 @@
* GamaPreferences.java, in msi.gama.core, is part of the source code of the GAMA modeling and simulation platform
* (v.1.8.2).
*
* (c) 2007-2021 UMI 209 UMMISCO IRD/SU & Partners (IRIT, MIAT, TLU, CTU)
* (c) 2007-2022 UMI 209 UMMISCO IRD/SU & Partners (IRIT, MIAT, TLU, CTU)
*
* Visit https://github.com/gama-platform/gama for license information and contacts.
*
Expand Down Expand Up @@ -870,7 +870,7 @@ private static void register(final Pref gp) {
final var spec = GamaMetaModel.INSTANCE.getPlatformSpeciesDescription();
if (spec != null && !spec.hasAttribute(key)) {
spec.addPref(key, gp);
spec.validate();
// spec.validate();
}
}

Expand Down

0 comments on commit a962a94

Please sign in to comment.