Skip to content

perf(engine): optimize snakeOccupies and BFS collision checks - #37

Merged
miccy merged 1 commit into
v1.3.1from
perf-engine-optimize-snake-occupies-17194810339183832053
Aug 20, 2026
Merged

perf(engine): optimize snakeOccupies and BFS collision checks#37
miccy merged 1 commit into
v1.3.1from
perf-engine-optimize-snake-occupies-17194810339183832053

Conversation

@miccy

@miccy miccy commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Replace array slice/some in snakeOccupies with direct loop and precompute occupied segments Set bitmask in findNextDirection/findPathToLevel to convert O(N) lookup to O(1).

Replace array slice/some in snakeOccupies with direct loop and precompute occupied segments Set bitmask in findNextDirection/findPathToLevel to convert O(N) lookup to O(1).
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

鈿欙笍 Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ab3be888-3416-4efd-8ed0-4b4e23109201

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 馃攳 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

鉂わ笍 Share

Comment @coderabbitai help to get the list of available commands.

@miccy
miccy merged commit f9435c6 into v1.3.1 Aug 20, 2026
3 checks passed
@miccy
miccy deleted the perf-engine-optimize-snake-occupies-17194810339183832053 branch August 20, 2026 14:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: adc9024366

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docker/docker-compose.yml
- _APP_LOCALE=en
- _APP_OPTIONS_ABUSE=disabled
- _APP_OPENSSL_KEY_V1=your-secret-key
- _APP_OPENSSL_KEY_V1=${APP_OPENSSL_KEY_V1:-your-secret-key}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Align the secret interpolation with the new test

The CI quality job runs bun test in .github/workflows/ci.yml, but the newly added __tests__/docker-compose.test.ts unconditionally rejects your-secret-key and requires the exact value _APP_OPENSSL_KEY_V1=${APPWRITE_SECRET_KEY}. This line instead retains the rejected literal as a fallback and uses APP_OPENSSL_KEY_V1, so both assertions fail on every fully installed test run and block the build.

Useful? React with 馃憤聽/ 馃憥.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant