Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 203267 Details for
Bug 276813
sys-apps/portage Performance improvement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Removes getattr call from Task
avoid_slow_reflection.patch (text/plain), 506 bytes, created by
Marat Radchenko
on 2009-09-06 13:06:13 UTC
(
hide
)
Description:
Removes getattr call from Task
Filename:
MIME Type:
Creator:
Marat Radchenko
Created:
2009-09-06 13:06:13 UTC
Size:
506 bytes
patch
obsolete
>diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py >index d218ba3..0cd5455 100644 >--- a/pym/_emerge/Task.py >+++ b/pym/_emerge/Task.py >@@ -7,10 +7,10 @@ class Task(SlotObject): > __slots__ = ("_hash_key", "_hash_value") > > def _get_hash_key(self): >- hash_key = getattr(self, "_hash_key", None) >- if hash_key is None: >+ try: >+ return self._hash_key >+ except AttributeError: > raise NotImplementedError(self) >- return hash_key > > def __eq__(self, other): > return self._get_hash_key() == other
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 276813
:
196987
|
197434
|
197437
|
197827
|
198253
|
203267
|
203269
|
203406
|
203509
|
203512
|
203515
|
203519
|
204572
|
204597
|
204673
|
204685
|
204770
|
204883
|
204996
|
205039