二维地图实体视野管理,C++11 单头文件,零依赖(仅 STL)。提供两种实现:
| 实现 | 算法 | 适用场景 |
|---|---|---|
ccaoi_normal |
全表扫描 O(N) | N < 300, 简单场景 |
ccaoi_grid |
九宫格 O(1) | N ≥ 300, 生产环境 |
| # 变更为BBR2 | |
| netsh int tcp set supplemental Template=Internet CongestionProvider=bbr | |
| netsh int tcp set supplemental Template=Datacenter CongestionProvider=bbr | |
| netsh int tcp set supplemental Template=Compat CongestionProvider=bbr | |
| netsh int tcp set supplemental Template=DatacenterCustom CongestionProvider=bbr | |
| netsh int tcp set supplemental Template=InternetCustom CongestionProvider=bbr | |
| # 恢复为CUBIC | |
| # netsh int tcp set supplemental Template=Internet CongestionProvider=cubic | |
| # netsh int tcp set supplemental Template=Datacenter CongestionProvider=cubic |
| version: '3' | |
| services: | |
| opensearch-node: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/) | |
| image: opensearchproject/opensearch:2 # Specifying the latest available image - modify if you want a specific version | |
| container_name: opensearch-node | |
| environment: | |
| - cluster.name=opensearch-cluster # Name the cluster | |
| - node.name=opensearch-node # Name the node that will run in this container | |
| - bootstrap.memory_lock=true # Disable JVM heap memory swapping | |
| - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM |