mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 08:59:01 +00:00
Resolves checkstyle errors for dao data-bus data-locality data-mapper data-transfer-object decorator (#1067)
* Reduces checkstyle errors in dao * Reduces checkstyle errors in data-bus * Reduces checkstyle errors in data-locality * Reduces checkstyle errors in data-mapper * Reduces checkstyle errors in data-transfer-object * Reduces checkstyle errors in decorator
This commit is contained in:
committed by
Ilkka Seppälä
parent
eae09fc07e
commit
01e489c77b
@@ -28,22 +28,21 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Use the Data Locality pattern is when you have a performance problem.
|
||||
* Take advantage of that to improve performance by increasing data locality — keeping data in
|
||||
* contiguous memory in the order that you process it.
|
||||
*
|
||||
* Example: Game loop that processes a bunch of game entities.
|
||||
* Those entities are decomposed into different domains
|
||||
* — AI, physics, and rendering — using the Component pattern.
|
||||
* Use the Data Locality pattern is when you have a performance problem. Take advantage of that to
|
||||
* improve performance by increasing data locality — keeping data in contiguous memory in the order
|
||||
* that you process it.
|
||||
*
|
||||
* <p>Example: Game loop that processes a bunch of game entities. Those entities are decomposed
|
||||
* into different domains — AI, physics, and rendering — using the Component pattern.
|
||||
*/
|
||||
public class Application {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(Application.class);
|
||||
|
||||
private static final int NUM_ENTITIES = 5;
|
||||
|
||||
/**
|
||||
* Start game loop with each component have NUM_ENTITIES instance
|
||||
* Start game loop with each component have NUM_ENTITIES instance.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
LOGGER.info("Start Game Application using Data-Locality pattern");
|
||||
|
||||
Reference in New Issue
Block a user