-
Notifications
You must be signed in to change notification settings - Fork 185
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
Autocomplete speedup vol. 2 #599
Closed
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
2d91ee8
speedup autocomplete with ReadableIndex::getDefinitionsForNamespace
nicolasmure b7c7128
update tests
nicolasmure 6d725a2
speedup static access autocomplete
nicolasmure 18f2f4c
cleanup
nicolasmure 17602aa
globalDefinitions cache to speedup autocomplete
nicolasmure 6d30035
also remove empty namespace index
nicolasmure ca0caf1
store definitions under the namespaceDefinitions cache key directly
nicolasmure 8768b69
use Generators to get definitions without wasting memory
nicolasmure 8801edb
also yield URIs to save memory
nicolasmure 6a41a7f
add example of indexed definitions
nicolasmure 6a36828
avoid useless array
nicolasmure e34d8e1
use of null coalescing operator
nicolasmure 14f840b
use correct terminology
nicolasmure e9fd572
consider the merge of #511
nicolasmure d1f85f1
use tree representation index
nicolasmure 188a5df
fix definitions storage collision (member / non member)
nicolasmure cacde1e
use a single array to store definitions
nicolasmure e162d94
cleanup
nicolasmure 7437d30
Fix formatting
felixfbecker b118c77
Correct some docblocks
felixfbecker b3f30f3
cache is backward compatible
nicolasmure 7511e25
Merge branch 'master' into feature/autocomplete-speedup
felixfbecker fcdf791
use string concatenation instead of sprintf
nicolasmure 3bda390
Merge branch 'master' into feature/autocomplete-speedup
felixfbecker b03950c
Cleanup
felixfbecker 97ec127
fix definition removal
nicolasmure 48bbbb5
differenciate member and non member definitions
nicolasmure 67dd980
Merge branch 'master' into feature/autocomplete-speedup
felixfbecker 91ca99a
Revert "differenciate member and non member definitions"
felixfbecker fa67f84
perf: get direct children
felixfbecker 81c40f2
chore: add completion benchmark
felixfbecker 8617948
Merge remote-tracking branch 'origin/master' into autocomplet-speedup
Declspeck 439cebe
fix(tests): fix require in parsing.php benchmark after file move
Declspeck e589f9e
refactor(completion): make completion of global symbols use Index mor…
Declspeck 6858bd3
tests(completion): add completion of new| ParameterBag to completion …
Declspeck d6b4e79
feat(completion): complete for used namespaces
Declspeck 98ac9ff
Merge branch 'master' into autocomplet-speedup
Declspeck d1933b8
refactor(completion): rewrite global name completion with generators
Declspeck 0bc5b81
fix(completion): Return type hint
Declspeck 334683a
Merge branch 'master' into autocomplet-speedup
Declspeck 5921fd3
Address feedback
Declspeck 3d5f0ca
Merge branch 'master' into autocomplet-speedup
Declspeck 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line can be simplified too
if (is_string($item->insertText) && substr($item->insertText, -2) === '()') {