-
Notifications
You must be signed in to change notification settings - Fork 116
add blazingly fast instance_cache implementation for K2 #1683
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
denisichh
wants to merge
29
commits into
master
Choose a base branch
from
dzubarev/k2/add-instance-cache
base: master
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
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
40aa5cc
added instance cache + fix tests
denisichh 3ff6647
fix
denisichh ce9f1a1
added kphp::visitors to C and C*
denisichh 0d128df
fix
denisichh eb40a15
xif
denisichh 697be39
fix?
denisichh 9afe36d
tmp fix
denisichh cf11ba5
added kphp::visitors to DummyVisitorMethods
denisichh c661e8b
removed useless warnings
denisichh de5c746
minor fix
denisichh 1967d1c
fix
denisichh b0ad895
code_style++?
denisichh 5682085
fmt + minor fixes and optimisations
denisichh a76b998
added alignment for ic_store
denisichh ac45877
sigsegv fix
denisichh 458d1ff
fmt
denisichh 274b972
fix
denisichh d4e6c2d
fix
denisichh dbba99f
added new test
denisichh a77d491
-
denisichh ef9401a
removed unused include
denisichh 7f12b1a
k2api updated
denisichh e77d731
added: k2_free_shared_memory + removed: fetch optimisation, part of t…
denisichh 81cee3f
fix
denisichh 011584a
update k2api
denisichh 85df866
fix instance_cache_store
denisichh ffcf9fb
update k2api
denisichh 12b4120
fix
denisichh 6f6d523
optional-based clone_in/alloc_in + get_class_name_hash()
denisichh 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 |
|---|---|---|
| @@ -1,13 +1,10 @@ | ||
| <?php | ||
|
|
||
| /** @kphp-extern-func-info cpp_template_call interruptible */ | ||
| /** @kphp-extern-func-info cpp_template_call */ | ||
| function instance_cache_fetch(string $type, string $key, bool $even_if_expired = false) ::: instance<^1>; | ||
|
|
||
| /** @kphp-extern-func-info interruptible */ | ||
| function instance_cache_store(string $key, object $value, int $ttl = 0) ::: bool; | ||
|
|
||
| /** @kphp-extern-func-info interruptible */ | ||
| function instance_cache_update_ttl(string $key, int $ttl = 0) ::: bool; | ||
|
|
||
| /** @kphp-extern-func-info interruptible */ | ||
| function instance_cache_delete(string $key) ::: bool; |
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
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.