-
Notifications
You must be signed in to change notification settings - Fork 37
Added cached properties implementation. #292
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 1 commit
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
3842149
Added cached properties implementation.
jordanbriere d90de7c
Fixed cached generators being exhausted after the first iteration.
jordanbriere 7aefd2a
Fixed CachedGenerator not caching all the generated values if the fir…
jordanbriere fe034ab
Dynamic entity functions are now cached.
jordanbriere af24025
Added Entity.instances cached property.
jordanbriere e06bde9
Entity.inputs and Entity.outputs instances are now cached.
jordanbriere 70717da
Improved performance of Entity.<get/set>_property_<type> methods.
jordanbriere a4642cc
Fixed some memory leaks.
jordanbriere afde4a1
Fixed CachedProperty's decorators overriding the main descriptor name.
jordanbriere 388e71e
EntityMemFuncWrapper is no longer caching itself; the Entity class al…
jordanbriere 9c7e4a2
Fixed Player.is_bot and Player.is_hltv now being properties rather th…
jordanbriere 9066933
Improved the caching of dynamic function wrappers.
jordanbriere b187391
Fixed a circular reference.
jordanbriere 682ee74
Fixed cached properties declared on the c++ side not being managed by…
jordanbriere 0e29616
Removed CachedProperty.owner, which was causing another circular refe…
jordanbriere 258c105
Fixed back reference issues.
jordanbriere fc618e1
Fixed KeyError when invalidating the cache for field that were not pr…
jordanbriere de055b8
Fixed EntityDictionary potentially caching soon-to-be removed entities.
jordanbriere b664ef0
Added a warning to CachedProperty's documentation regarding circular …
jordanbriere be36626
Fixed dynamic function wrappers from no longer being documented.
jordanbriere 7747961
Fixed Entity.__setattr__ not properly iterating over the entity's ser…
jordanbriere 88bec54
Added "unbound" parameter to CachedProperty as a workaround for circu…
jordanbriere 45a4060
Added back CachedProperty.owner as a weak reference.
jordanbriere 8502e1b
Fixed Player.is_bot to be cached correctly. (#294)
CookStar debc63b
Fixed a crash caused by Function's convention being freed twice when …
jordanbriere 02ea4e1
Fixed the invalidation of the internal entity cache before all entity…
jordanbriere a74aa97
Merge branch 'master' into cached_property
jordanbriere 44f89f6
Added caching boolean argument for Player.from_userid.
satoon101 f90078c
Disabled instance caching for Entity's subclasses that do not explici…
jordanbriere 545ef0d
Improved performance of memory tools (approximately 2.5 times faster).
jordanbriere 31ea73a
Merge branch 'master' into bugfix_player_from_userid
jordanbriere f87788a
Merge branch 'bugfix_player_from_userid' into cached_property
jordanbriere ecab5bb
Merge branch 'master' into cached_property
jordanbriere 7c5f43a
Merge branch 'master' into cached_property
jordanbriere 6e8d282
Merge branch 'master' into cached_property
jordanbriere d8043ba
Merge branch 'master' into cached_property
jordanbriere 5130d5c
Fixed exceptions potentially being silenced when caching generators.
jordanbriere abba9e7
Added missing args and kwargs parameters to CachedProperty.wrap_descr…
jordanbriere 37c9337
Merge remote-tracking branch 'remotes/origin/master' into cached_prop…
jordanbriere 6a6dd96
Merge remote-tracking branch 'remotes/origin/master' into cached_prop…
jordanbriere 6f55b09
Merge branch 'master' into cached_property
jordanbriere 274faf4
Merge branch 'master' into cached_property
jordanbriere 3785faa
Merge branch 'master' into cached_property
jordanbriere b6ed444
Merge branch 'master' into cached_property
jordanbriere 03609da
Merge branch 'master' into cached_property
jordanbriere 2c309b5
Moved an extraction to avoid doing it when not necessary.
jordanbriere e9c5a82
Optimized Entity.<get/set>_property_edict methods.
jordanbriere 6e84aac
Merge remote-tracking branch 'remotes/origin/master' into cached_prop…
jordanbriere fa1926b
Fixed entity delays/repeats not being cancelled if they were register…
jordanbriere 3cedd95
Player.language property is now only cached for games it was already …
jordanbriere b8afdb6
Optimized non-cached get_client_language by using the internal Player…
jordanbriere 24380ff
Optimized various python calls from c++.
jordanbriere ea77ce4
Optimized pointer extraction.
jordanbriere 0c4248e
Fixed memory leaks caused by Sound/StreamSound instances never unload…
jordanbriere f3e8ce5
Fixed memory leaks into engine_sound.emit_sound caused by the sounds …
jordanbriere fe1422f
Merge branch 'master' into cached_property
jordanbriere 95cf384
Merge branch 'master' into cached_property
jordanbriere a179e8c
Improved performance of Entity.is_in_solid's default behaviour (appro…
jordanbriere a87f121
Moved Entity.<get/set>_property_<type> methods to BaseEntity (approx.…
jordanbriere ff4ec27
Removed Entity.<get/set>_property_<type> methods.
jordanbriere 8d1ed6e
Merge branch 'master' into cached_property
jordanbriere 4269a14
Improved performance of TraceFilterSimple.should_hit_entity (approx. …
jordanbriere 6fcf7b1
Oops, fixed a condition.
jordanbriere c613ac8
Added example to CachedProperty's docstring.
jordanbriere 705a088
Improved performance of Entity.create, find and find_or_create by mov…
jordanbriere 6fe0038
Fixed non-networked entities creation/lookup.
jordanbriere ec6ac90
Added an overload to memory.make_object to avoid redundant extraction.
jordanbriere bb86856
Added BaseEntity.is_marked_for_deletion (approx. 13 times faster than…
jordanbriere 83e23cb
Merge branch 'master' into cached_property
jordanbriere 1b67129
Fixed BaseEntity.is_marked_for_deletion from checking the wrong flag.
jordanbriere 3e7b711
Moved InputFunction to c++ (~21x faster).
jordanbriere 067d6ff
Added sanity check to InputFunction's constructor.
jordanbriere 3809139
Removed no longer used imports into entities._base.
jordanbriere 350825f
Merge branch 'master' into cached_property
jordanbriere 1265508
Added cached_result decorator.
jordanbriere 4cb773c
Merge branch 'master' into cached_property
jordanbriere 2ce7227
Removed a redundant layer to get Entity.index.
jordanbriere 79e62a7
Added CachedProperty.<get/set>_cached_value methods.
jordanbriere b9e8826
Fixed CachedProperty.<get/set>_cached_value methods from possibly cac…
jordanbriere f730a62
Improved some Entity's methods by avoiding repeated attribute retriev…
jordanbriere fe1f31c
Merge branch 'master' into cached_property
jordanbriere 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
Improved performance of Entity.<get/set>_property_<type> methods.
Fixed BaseEntity.<get/set>_network_property_<type> from reading/writing from a NULL pointer. Fixed excluded properties/collapsible tables not being skipped.
- Loading branch information
commit 70717dacad548900b3dfcee1799b4a73014beed5
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
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.