| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:380d3bd7-d579-afd1-6185-942051463758 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9234:1E1784:5D96EC:7C485B:6B062454 |
| html-safe-nonce | a27cd0c8fb11cc52691e2ba57715544b353c278f7f740b4777477165613cf34e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjM0OjFFMTc4NDo1RDk2RUM6N0M0ODVCOjZCMDYyNDU0IiwidmlzaXRvcl9pZCI6IjEzNTkzMTUxMzMzMTQ1MDc4NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3663e145e0b7f24143d00f2a577edfefbb2168c70d19311a6808bb9e1ed5f41d |
| hovercard-subject-tag | pull_request:5211857156 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| twitter:image | https://avatars.githubusercontent.com/u/10107858?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10107858?s=400&v=4 |
| og:image:alt | Summary
This PR reduces per-frame CPU overhead, shared-memory ByteBuffer reads, and heap/GC allocation pressure
Lazy Per-Frame UnitListCache (Game, Player):
Replaces eager stream filtering on Ga... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/JavaBWAPI/JBWAPI git https://github.com/JavaBWAPI/JBWAPI.git |
| octolytics-dimension-user_id | 46279254 |
| octolytics-dimension-user_login | JavaBWAPI |
| octolytics-dimension-repository_id | 149718845 |
| octolytics-dimension-repository_nwo | JavaBWAPI/JBWAPI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 149718845 |
| octolytics-dimension-repository_network_root_nwo | JavaBWAPI/JBWAPI |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaBWAPI%2FJBWAPI%2Fpull%2F110%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaBWAPI%2FJBWAPI%2Fpull%2F110%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaBWAPI%2FJBWAPI |
| Reload | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| Reload | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| Reload | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| JavaBWAPI | https://github.com/JavaBWAPI |
| JBWAPI | https://github.com/JavaBWAPI/JBWAPI |
| Code | https://github.com/JavaBWAPI/JBWAPI |
| Issues11 (11) | https://github.com/JavaBWAPI/JBWAPI/issues |
| Pull requests4 (4) | https://github.com/JavaBWAPI/JBWAPI/pulls |
| Actions | https://github.com/JavaBWAPI/JBWAPI/actions |
| Security and quality | https://github.com/JavaBWAPI/JBWAPI/security |
| Insights | https://github.com/JavaBWAPI/JBWAPI/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FJavaBWAPI%2FJBWAPI%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FJavaBWAPI%2FJBWAPI%2Fissues%2Fnew%2Fchoose |
| JasperGeurtz | https://github.com/JasperGeurtz |
| develop | https://github.com/JavaBWAPI/JBWAPI/tree/develop |
| perf-optimizations | https://github.com/JavaBWAPI/JBWAPI/tree/perf-optimizations |
|
Conversation
0
| https://github.com/JavaBWAPI/JBWAPI/pull/110 |
|
Commits
7
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits |
|
Checks
11
| https://github.com/JavaBWAPI/JBWAPI/pull/110/checks |
|
Files changed
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| Please reload this page | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
|
Optimize jbwapi
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#top |
|
Show all changes
7 commits
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
|
2340f05
Add lazy per-frame UnitListCache for filtered unit lists
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/2340f0520482857d273cc63effc3dad2546b8a61 |
|
d80ebe8
Make UnitSelf and PlayerSelf latency compensation lazily allocated on…
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/d80ebe8bea8d366df75d52a8f00695c3abd4ca31 |
|
18448a1
Add JMH PerformanceBenchmark for Unit distance/position and spatial q…
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/18448a1eae9dd5e0cf59ff1143f424fd3c17ff10 |
|
fa80c4b
Optimize Unit.getDistance, Unit.updatePosition, getUnitsInRectangle, …
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/fa80c4b790d8b071db0ba179dcd889a40ce0885f |
|
e362570
Cache immutable wrappers on UnitType, TechType, and UpgradeType
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/e3625709bfdf3793ce65bde846c304575176a7c8 |
|
7dfe602
Use BitSet for Game.visibleUnits
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/7dfe602713cf7863a7dbbf6e9c5c7b8ab121b69b |
|
11b4650
Add worst-case visibleUnits benchmark to PerformanceBenchmark
Nov 8, 2026
| https://github.com/JavaBWAPI/JBWAPI/pull/110/commits/11b4650cf703885beec706e7aec54a59e34f4907 |
|
Clear filters
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| Please reload this page | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| Please reload this page | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
|
Bullet.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-1751e5db670d792210e807f0f104a8162f22115013983a216b1741c3912cadb0 |
|
Cache.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-010de5ff11bc88c7b39ce8cd674ebf08917943e2ccf54d3c6063c62695277b13 |
|
Color.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-efbb60fc2c0505dff5ab3f5fc0b410ed181b91ad03d63617cd494283b08126b4 |
|
CommandTemp.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-49db672e55062860df81feeb85503d5a234fee668e02eecae923de7fb7df0845 |
|
ConnectedUnitCache.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-445571ddc93d2154841b453c84d5eb3281fa178a8bcbd4832e84f1ab0da65cf2 |
|
Force.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-131cd0bc6041fddd89ea0fcd439babab384d73319a524d0e811d1e2119c8279e |
|
Game.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-205d857a5fb5f2002e81b03dfd1838464ec7487bc4c344d8be27e791b3ba97cc |
|
PerformanceMetric.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-befea56171cfb619e880c6957d0be2497460ba14d15624c9ca896e6a4917054d |
|
Player.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-6f20dde1f33e3a17bc84075129285f3342b288a5e26fa386885436c86ee87f13 |
|
Point.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-fa07d5db52b279c0ee4eacd7045a6f16624c537e31813d20087e2c1e0a446afc |
|
Region.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-129a1cebc8ea78bae7e04cb9e4fc65690ae2526d9be41ff262cfcb8f67b26ff5 |
|
TechType.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-86704f33fe1d272a595d498acb9ba06eb5a1ce18de4d947fc1dd959e80dbe376 |
|
Unit.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-b51ece12baa78ed03014d88c88bc59175bef255dfbf4e5552158dc865051b0e7 |
|
UnitType.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-936f3238ddbbc23fd7454c2d576aaf561bd212f2a4c9d5e4fa5caf3bd5c3d4cb |
|
UnitTypeContainer.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-2387c208ce826760dae386cbca84af50480881006ce201b3203a0afa6e924662 |
|
UpgradeType.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-dd818b4b237f67868f76c601c724f4738d3085792de2752ff53a6e68e4695d53 |
|
CommandTempTest.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-da3ecb9934a5f91dc711a667db9f3b232e76f8fad233da892462174d6644a41d |
|
GameTest.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-4b2cb3d8420c2405a94a5f8cee077e5131d3a0d55e273490efa6ff89482531d0 |
|
PerformanceBenchmark.java
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-a02ae7d7c47e5964f39457356091f4d2c0335750c051a8d8c5c904e0c9ff9308 |
| src/main/java/bwapi/Bullet.java | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-1751e5db670d792210e807f0f104a8162f22115013983a216b1741c3912cadb0 |
|
View file
| https://github.com/JavaBWAPI/JBWAPI/blob/11b4650cf703885beec706e7aec54a59e34f4907/src/main/java/bwapi/Bullet.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/JavaBWAPI/JBWAPI/pull/110/{{ revealButtonHref }} |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-1751e5db670d792210e807f0f104a8162f22115013983a216b1741c3912cadb0 |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-1751e5db670d792210e807f0f104a8162f22115013983a216b1741c3912cadb0 |
| src/main/java/bwapi/Cache.java | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-010de5ff11bc88c7b39ce8cd674ebf08917943e2ccf54d3c6063c62695277b13 |
|
View file
| https://github.com/JavaBWAPI/JBWAPI/blob/11b4650cf703885beec706e7aec54a59e34f4907/src/main/java/bwapi/Cache.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/JavaBWAPI/JBWAPI/pull/110/{{ revealButtonHref }} |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-010de5ff11bc88c7b39ce8cd674ebf08917943e2ccf54d3c6063c62695277b13 |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-010de5ff11bc88c7b39ce8cd674ebf08917943e2ccf54d3c6063c62695277b13 |
| src/main/java/bwapi/Color.java | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-efbb60fc2c0505dff5ab3f5fc0b410ed181b91ad03d63617cd494283b08126b4 |
|
View file
| https://github.com/JavaBWAPI/JBWAPI/blob/11b4650cf703885beec706e7aec54a59e34f4907/src/main/java/bwapi/Color.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/JavaBWAPI/JBWAPI/pull/110/{{ revealButtonHref }} |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-efbb60fc2c0505dff5ab3f5fc0b410ed181b91ad03d63617cd494283b08126b4 |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-efbb60fc2c0505dff5ab3f5fc0b410ed181b91ad03d63617cd494283b08126b4 |
| src/main/java/bwapi/CommandTemp.java | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-49db672e55062860df81feeb85503d5a234fee668e02eecae923de7fb7df0845 |
|
View file
| https://github.com/JavaBWAPI/JBWAPI/blob/11b4650cf703885beec706e7aec54a59e34f4907/src/main/java/bwapi/CommandTemp.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/JavaBWAPI/JBWAPI/pull/110/{{ revealButtonHref }} |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-49db672e55062860df81feeb85503d5a234fee668e02eecae923de7fb7df0845 |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-49db672e55062860df81feeb85503d5a234fee668e02eecae923de7fb7df0845 |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-49db672e55062860df81feeb85503d5a234fee668e02eecae923de7fb7df0845 |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-49db672e55062860df81feeb85503d5a234fee668e02eecae923de7fb7df0845 |
| src/main/java/bwapi/ConnectedUnitCache.java | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-445571ddc93d2154841b453c84d5eb3281fa178a8bcbd4832e84f1ab0da65cf2 |
|
View file
| https://github.com/JavaBWAPI/JBWAPI/blob/68871f1ca74c1ccaa6301543893d3c0406f027f7/src/main/java/bwapi/ConnectedUnitCache.java |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| src/main/java/bwapi/Force.java | https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-131cd0bc6041fddd89ea0fcd439babab384d73319a524d0e811d1e2119c8279e |
|
View file
| https://github.com/JavaBWAPI/JBWAPI/blob/11b4650cf703885beec706e7aec54a59e34f4907/src/main/java/bwapi/Force.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/JavaBWAPI/JBWAPI/pull/110/{{ revealButtonHref }} |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-131cd0bc6041fddd89ea0fcd439babab384d73319a524d0e811d1e2119c8279e |
|
| https://github.com/JavaBWAPI/JBWAPI/pull/110/files#diff-131cd0bc6041fddd89ea0fcd439babab384d73319a524d0e811d1e2119c8279e |
| Please reload this page | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
| Please reload this page | https://github.com/JavaBWAPI/JBWAPI/pull/110/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |