Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Simplemma & limit its memory usage #724

Merged
merged 7 commits into from
Sep 17, 2024
Merged

Conversation

osma
Copy link
Member

@osma osma commented Aug 10, 2023

This PR upgrades Simplemma to the latest version 1.1.1 and adds some wrapper code to make it possible to use Simplemma language detection with a limit on the number of languages simultaneously loaded into memory. The number of languages is currently hardcoded at 5.

This will enable adding language detection functionality to the REST API in PR #659 , which has not been merged yet due to concerns about memory usage.

@osma osma added this to the 1.0 milestone Aug 10, 2023
@osma osma self-assigned this Aug 10, 2023
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.64%. Comparing base (337ee70) to head (61c9409).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #724   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files          91       93    +2     
  Lines        6831     6854   +23     
=======================================
+ Hits         6807     6830   +23     
  Misses         24       24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarcloud
Copy link

sonarcloud bot commented Aug 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@juhoinkinen
Copy link
Member

In PR #796 Simplemma is updated to 1.1, so this could be merged after that.

There I already did some neccessary changes to the language detection code: 49d5052

@juhoinkinen juhoinkinen modified the milestones: Short term, 1.2 Aug 22, 2024
@osma
Copy link
Member Author

osma commented Sep 16, 2024

Rebased on current main and force-pushed.

@osma osma marked this pull request as ready for review September 16, 2024 08:50
@osma osma changed the title WIP: Upgrade Simplemma Upgrade Simplemma & limit its memory usage Sep 16, 2024
Copy link

sonarcloud bot commented Sep 16, 2024

Copy link
Member

@juhoinkinen juhoinkinen left a comment

Choose a reason for hiding this comment

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

LGTM

@juhoinkinen juhoinkinen merged commit e1edc53 into main Sep 17, 2024
19 checks passed
@juhoinkinen juhoinkinen deleted the upgrade-simplemma branch September 17, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants