-
Notifications
You must be signed in to change notification settings - Fork 101
feat: memory-efficient runtime with heap-aware workers and disk-backed indices #595
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7d897c3
feat-) memory aware thread pool and heap pressure detection
arun28082007 25207fe
utilized new changes
arun28082007 ab6f23d
Update
arun28082007 70876a1
ci: add fork-only build workflow
arun28082007 4f31dfc
fix: add missing ConcurrentHashMap import
arun28082007 08f73f6
ci update only for fork
arun28082007 ac9de57
some chnages after dev reviee
arun28082007 2488b6f
Delete app/src/main/kotlin/org/cosmicide/common/MemoryAwareDispatcher…
arun28082007 7480f15
Delete .github/workflows/build.yml
arun28082007 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Build Debug APK | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "memory" ] | ||
| workflow_dispatch: | ||
|
|
||
|
|
||
|
|
||
| jobs: | ||
| build: | ||
| if: github.repository == 'arun28082007/Cosmic-IDE' | ||
| runs-on: macos-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Zig | ||
| uses: mlugg/setup-zig@v2 | ||
|
|
||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4.2.1 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
|
|
||
| - name: Install patch tools | ||
| run: brew install binutils jq ncurses zstd gnu-tar python | ||
|
|
||
| - name: Generate glibc.tar.zst | ||
| run: bash ./scripts/build-glibc.sh | ||
|
|
||
| - name: Give permission to executable | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Build with gradle | ||
| uses: gradle/gradle-build-action@v3.1.0 | ||
| with: | ||
| gradle-version: nightly | ||
| arguments: assembleProdDebug | ||
|
|
||
| - name: Upload debug apks | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: app-arm64-v8a | ||
| path: app/build/outputs/apk/prod/debug/app-prod-arm64-v8a-debug.apk |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package org.cosmicide.common | ||
|
|
||
| import kotlinx.coroutines.Dispatchers | ||
| import kotlinx.coroutines.asCoroutineDispatcher | ||
|
|
||
| object AppDispatchers { | ||
| val IO = MemoryAwareDispatchers.IO.asCoroutineDispatcher() | ||
| val Main = Dispatchers.Main | ||
| } |
2 changes: 2 additions & 0 deletions
2
app/src/main/kotlin/org/cosmicide/common/MemoryAwareDispatchers.kt
|
arun28082007 marked this conversation as resolved.
Outdated
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| // MemoryAwareDispatchers lives in common module. | ||
| // Use org.cosmicide.common.MemoryAwareDispatchers.IO (ExecutorService). |
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
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
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.
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.