Skip to content

Conversation

@ltmdum
Copy link

@ltmdum ltmdum commented Nov 5, 2025

Description

Fixes #2644 - Uncaught MemoryError in base_coder.py line 541.

Changes

  • Modified choose_fence() in aider/coders/base_coder.py to find fences during single pass of content

Testing

  • Verified passing unit tests still pass
  • Unable to reproduce MemoryError

Related Issue

Closes #2644

- avoid storing all_content O(n) in memory
- only use 1 iteration through all content
@CLAassistant
Copy link

CLAassistant commented Nov 5, 2025

CLA assistant check
All committers have signed the CLA.

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.

Uncaught MemoryError in base_coder.py line 541

2 participants