[PR #1207] [MERGED] [IMPROVEMENT] Remove useless O(N) operations and memory allocations #2001

Open
opened 2026-01-29 17:19:42 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1207
Author: @NilsIrl
Created: 1/21/2020
Status: Merged
Merged: 1/22/2020
Merged by: @cfsmp3

Base: masterHead: o_n_ops_mem_alloc


📝 Commits (1)

  • 98b7315 Remove useless O(N) operations and memory allocations

📊 Changes

1 file changed (+27 additions, -29 deletions)

View changed files

📝 src/lib_ccx/ocr.c (+27 -29)

📄 Description

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

My familiarity with the project is as follows (check one):

  • I have used CCExtractor just a couple of times.

And move some processing to compile time. It also uses functions that don't check needlessly against '\0'.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1207 **Author:** [@NilsIrl](https://github.com/NilsIrl) **Created:** 1/21/2020 **Status:** ✅ Merged **Merged:** 1/22/2020 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `o_n_ops_mem_alloc` --- ### 📝 Commits (1) - [`98b7315`](https://github.com/CCExtractor/ccextractor/commit/98b731592fe799436d812c35c3cd12a0a96f8caa) Remove useless O(N) operations and memory allocations ### 📊 Changes **1 file changed** (+27 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `src/lib_ccx/ocr.c` (+27 -29) </details> ### 📄 Description **In raising this pull request, I confirm the following (please check boxes):** - [X] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [X] I have checked that another pull request for this purpose does not exist. - [X] I have considered, and confirmed that this submission will be valuable to others. - [X] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. - [X] I give this submission freely, and claim no ownership to its content. **My familiarity with the project is as follows (check one):** - [X] I have used CCExtractor just a couple of times. --- And move some processing to compile time. It also uses functions that don't check needlessly against '\0'. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:19:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2001