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

feat: Major performance improvements #291

Merged
merged 3 commits into from
Sep 12, 2024
Merged

Conversation

timonv
Copy link
Member

@timonv timonv commented Sep 11, 2024

Futures that do not yield were not run in parallel properly. With this futures are spawned on a tokio worker thread by default.

When embedding (fastembed) and storing a 85k row dataset, there's a ~1.35x performance improvement:
image

Need to do one more test with IO bound futures as well. Pretty huge, not that it was slow.

With IO bound openai it's 1.5x.

@timonv timonv force-pushed the performance-improvements branch from da04e4a to fcff093 Compare September 12, 2024 15:02
@timonv timonv marked this pull request as ready for review September 12, 2024 20:49
@timonv timonv merged commit f158960 into master Sep 12, 2024
11 checks passed
@timonv timonv deleted the performance-improvements branch September 12, 2024 20:49
@github-actions github-actions bot mentioned this pull request Sep 12, 2024
timonv pushed a commit that referenced this pull request Sep 13, 2024
## 🤖 New release
* `swiftide`: 0.11.1 -> 0.12.0
* `swiftide-core`: 0.11.1 -> 0.12.0
* `swiftide-indexing`: 0.11.1 -> 0.12.0
* `swiftide-macros`: 0.11.1 -> 0.12.0
* `swiftide-integrations`: 0.11.1 -> 0.12.0
* `swiftide-query`: 0.11.1 -> 0.12.0

<details><summary><i><b>Changelog</b></i></summary><p>

## `swiftide`
<blockquote>

## [0.12.0](https://github.com/bosun-ai/swiftide/releases/tag/0.12.0) -
2024-09-13

### Added

-
[e902cb7](e902cb7)
*(query)* Add support for filters in SimilaritySingleEmbedding
([#298](#298))

-
[f158960](f158960)
*(uncategorized)* Major performance improvements
([#291](#291))

### Fixed

-
[45d8a57](45d8a57)
*(ci)* Use llm-cov preview via nightly and improve test coverage
([#289](#289))

-
[501dd39](501dd39)
*(deps)* Update rust crate redis to 0.27
([#294](#294))

-
[f95f806](f95f806)
*(indexing)* Debugging nodes should respect utf8 char boundaries

-
[f8314cc](f8314cc)
*(indexing)* Limit logged chunk to max 100 chars
([#292](#292))

-
[9464ca1](9464ca1)
*(uncategorized)* Bad embed error propagation
([#293](#293))

-
[8595553](8595553)
*(uncategorized)* Implement into_stream_boxed for all loaders

### Other

-
[37c4bd9](37c4bd9)
*(deps)* Update treesitter
([#296](#296))


**Full Changelog**:
0.11.1...0.12.0
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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