Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 204996 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]
Improves vartree.getpath timing from 1.2 msec to 100 usec
faster_vartree_getpath.patch (text/plain), 866 bytes, created by
Marat Radchenko
on 2009-09-23 06:10:06 UTC
(
hide
)
Description:
Improves vartree.getpath timing from 1.2 msec to 100 usec
Filename:
MIME Type:
Creator:
Marat Radchenko
Created:
2009-09-23 06:10:06 UTC
Size:
866 bytes
patch
obsolete
>diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py >index 2bbc0f8..88f92d8 100644 >--- a/pym/portage/dbapi/vartree.py >+++ b/pym/portage/dbapi/vartree.py >@@ -50,6 +50,7 @@ from portage.cache.mappings import slot_dict_class > import codecs > import re, shutil, stat, errno, copy, subprocess > import logging >+import os as _os > import sys > import warnings > >@@ -839,9 +840,11 @@ class vardbapi(dbapi): > self._owners = self._owners_db(self) > > def getpath(self, mykey, filename=None): >- rValue = os.path.join(self.root, VDB_PATH, mykey) >+ rValue = self.root + _os.sep + VDB_PATH + _os.sep + mykey > if filename != None: >- rValue = os.path.join(rValue, filename) >+ # If filename is always relative, we can do just >+ # rValue += _os.sep + filename >+ rValue = _os.path.join(rValue, filename) > return rValue > > def cpv_exists(self, mykey):
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