-
Notifications
You must be signed in to change notification settings - Fork 19
Memory Optimizations #644
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
Open
lucksus
wants to merge
49
commits into
dev
Choose a base branch
from
memory-optimization
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Memory Optimizations #644
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
808ba56
Query related obvious memory improvements
lucksus 96044e1
Short prolog engine pool clean-up timings
lucksus 66a7d2c
Reuse whisper model for multiple streams
lucksus 9670dd5
Don't update prolog engines when links change
lucksus ff4b33e
No filtered pools
lucksus 862a999
Reuse multiple whisper models of different size, but only one per sizβ¦
lucksus 7d3ba8e
Prolog mode simple
lucksus 934cd76
Reactivate prolog subscriptions in simple mode
lucksus 9e03f8f
FIx updating SDNA in prolog simple mode
lucksus d41bc13
Ad4mModel write operations wihtout Prolog
lucksus 6686201
Prolog disabled mode
lucksus 2c18906
PrologMode::SdnaOnly
lucksus 58d33dd
Fix SdnaOnly mode with correct ownder_did and case differentiation.
lucksus 102f28f
Always recreate SdnaOnly Prolog engine (no memory creep but slow)
lucksus 61baa48
Update SdnaOnly prolog engine only if sdna links have changed
lucksus 46c9db4
fmt
lucksus 6492e60
Allow AI task creation wiht PROMPT capability
lucksus be96913
Set pool's FILTERING_THRESHOLD back to 6000 to fix test builds
lucksus 8c84c61
Reduce log-level of new Prolog mode debug logs
lucksus 92a78f1
Replace Prolog in isSubjectInstance() with Surreal
lucksus a52e03a
Don't try to resolve empty string target
lucksus 08babbe
FIx new collection queries
lucksus 0aef120
Collection ordering
lucksus a980367
Ad4mModel.getData() with surreal
lucksus ec99aa6
Static instance queries with surreal
lucksus fa49105
Skip tests for Prolog in Ad4mModels (will change this with SDNA refacβ¦
lucksus d63056f
Clean up tests
lucksus ad52121
Fix @Flags by parsing also target from instance triples
lucksus 0609c1b
Fix test by cleaning up first
lucksus 3ace84f
Skip prolog embedding vector encoding test
lucksus d40af15
Unflake some tests
lucksus e3d3eb7
Remove subscription truncation
lucksus 18c56e5
Ignore Prolog pool unit test for SdnaOnly mode
lucksus 1346b8e
Skip tests that don't work in SdnaOnly Prolog mode
lucksus 9706bbd
Prevent SQL injections by escaping values put into surreal queries
lucksus 7395c58
More surreal string escaping
lucksus 3d9187b
SDNA parsing robustness
lucksus 6ca5c68
getCollectionValuesViaSurreal(): avoid N+1 isSubjectInstance() checksβ¦
lucksus 936d6b6
Make getAllSubjectProxies() actually return subject proxies again
lucksus bb38c41
Improve SdnaOnly mode link filtering, split from simple mode, don't pβ¦
lucksus 5f05954
warning--
lucksus f8f83a1
Scope locks in Prolog service to avoid waiting and deadlocks
lucksus e6f3c6f
Clarify test case interdependency
lucksus 98f102d
fmt
lucksus b05d683
Link predicate queries: don't get all and filter in mem, constrain DBβ¦
lucksus 83e73fc
Try to unflake subscription test
lucksus d3fd341
Don't try Prolog first where we have surreal fallback - only surreal
lucksus cbd8f5c
Refactor PrologModes in perspective_instace
lucksus 795d868
Refactor PrologModes in prolog_service/mod.rs
lucksus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.