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

Improve real-time / sleep strategy, async await for queues and result futures #12

Merged
merged 7 commits into from
Oct 22, 2023

Conversation

michaelfeil
Copy link
Owner

@michaelfeil michaelfeil commented Oct 22, 2023

  • speed up using plain asyncio.Future events when waiting for results.
  • Implement sorting by oldest embedding first (currently slow)
  • Improve real-time / sleep strategy -> removed a time.sleep

Closes #11

@michaelfeil michaelfeil self-assigned this Oct 22, 2023
@michaelfeil michaelfeil changed the title Await for concurrent futures Improve real-time / sleep strategy, async await for queues and result futures Oct 22, 2023
@codecov-commenter
Copy link

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (10cd8e3) 87.41% compared to head (4443006) 86.34%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
- Coverage   87.41%   86.34%   -1.07%     
==========================================
  Files          16       16              
  Lines         556      542      -14     
==========================================
- Hits          486      468      -18     
- Misses         70       74       +4     
Files Coverage Δ
...nfinity_emb/infinity_emb/inference/select_model.py 94.44% <100.00%> (+0.15%) ⬆️
...ty_emb/infinity_emb/inference/threading_asyncio.py 100.00% <100.00%> (+20.00%) ⬆️
libs/infinity_emb/infinity_emb/infinity_server.py 84.48% <100.00%> (+0.35%) ⬆️
...finity_emb/infinity_emb/inference/batch_handler.py 90.79% <93.18%> (-0.67%) ⬇️
.../infinity_emb/infinity_emb/inference/primitives.py 70.58% <44.44%> (-29.42%) ⬇️

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

@michaelfeil michaelfeil merged commit 493311d into main Oct 22, 2023
3 checks passed
@michaelfeil michaelfeil deleted the feature-refactor branch October 22, 2023 10:24
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.

Update ResultKVStore
2 participants