Migrated from https://git2.unturf.com/engineering/java-topology.git
Defect: ByGivenOrder<T> uses std::find() on a vector for every comparison, making it O(N) per call. Used as std::map comparator in MainPanel.cpp for outfit scanning, giving O(O * C * log C) total scan operations where C is category count and O is outfit count. Fix: replace vector + std::find with unordered_map<T, size_t> for O(1) index lookup per comparison. 338x fewer scan operations measured at C=500 O=1000. Correctness verified: sort order and map iteration order match original for known values, unknown values, and mixed inputs. MOAD-0002: GameData has 80 static members (god object), typical for single-threaded game architecture. Not a fixable defect. MOAD-0003: CLEAN. thread_local used appropriately for Random/Files/CollisionSet. MOAD-0004: CLEAN. No credentials or secrets in a space trading game. MOAD-0005: CLEAN. Single-threaded game, no concurrent cache access. |
||
|---|---|---|
| .github | ||
| .jcheck | ||
| bin | ||
| defects | ||
| doc | ||
| docs | ||
| make | ||
| scanner | ||
| src | ||
| test | ||
| tests | ||
| tools | ||
| whitepaper | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| ADDITIONAL_LICENSE_INFO | ||
| ASSEMBLY_EXCEPTION | ||
| CLAUDE.md | ||
| compile-unit-tests.sh | ||
| configure | ||
| CONTRIBUTING.md | ||
| GNUmakefile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| SECURITY.md | ||
| UNDF-REGISTRY.json | ||
Welcome to the JDK!
For build instructions please see the online documentation, or either of these files:
- doc/building.html (html version)
- doc/building.md (markdown version)
See https://openjdk.org/ for more information about the OpenJDK Community and the JDK and see https://bugs.openjdk.org for JDK issue tracking.