Closed Bug 1355630 Opened 7 years ago Closed 7 years ago

Performance improvements to files info resolution

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: gps, Assigned: gps)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

Bug 1352495 is doing some things that is finding all of the algorithmic inefficiencies in files metadata reading code. Let's make some tweaks to help with performance.
Should this be in product Core instead of Calendar?
Flags: needinfo?(gps)
Product: Calendar → Core
Flags: needinfo?(gps)
Comment on attachment 8857241 [details]
Bug 1355630 - Use a set for membership testing;

https://reviewboard.mozilla.org/r/129182/#review132218
Attachment #8857241 - Flags: review?(cmanchester) → review+
Comment on attachment 8857242 [details]
Bug 1355630 - Extract set declaration to member variable;

https://reviewboard.mozilla.org/r/129184/#review132222

::: python/mozbuild/mozbuild/frontend/reader.py:1403
(Diff revision 1)
> -        test_manifest_contexts = set(
> +    TEST_MANIFEST_CONTEXTS = set(
> -            ['%s_MANIFESTS' % key for key in TEST_MANIFESTS] +
> +        ['%s_MANIFESTS' % key for key in TEST_MANIFESTS] +
> -            ['%s_MANIFESTS' % flavor.upper() for flavor in REFTEST_FLAVORS] +
> +        ['%s_MANIFESTS' % flavor.upper() for flavor in REFTEST_FLAVORS] +
> -            ['%s_MANIFESTS' % flavor.upper().replace('-', '_') for flavor in WEB_PLATFORM_TESTS_FLAVORS]
> +        ['%s_MANIFESTS' % flavor.upper().replace('-', '_') for flavor in
> +         WEB_PLATFORM_TESTS_FLAVORS]
> -        )
> +    )
>  
> +    def test_defaults_for_path(self, ctxs):

Adding this global is kinda ugly. This is the only patch here that doesn't have timings in the commit message... what's the actual overhead?
Attachment #8857242 - Flags: review?(cmanchester)
Comment on attachment 8857243 [details]
Bug 1355630 - Memoize tests_defaults_for_path call;

https://reviewboard.mozilla.org/r/129186/#review132226
Attachment #8857243 - Flags: review?(cmanchester) → review+
Comment on attachment 8857244 [details]
Bug 1355630 - Inline specialized version of relpath();

https://reviewboard.mozilla.org/r/129188/#review132232
Attachment #8857244 - Flags: review?(cmanchester) → review+
Comment on attachment 8857242 [details]
Bug 1355630 - Extract set declaration to member variable;

https://reviewboard.mozilla.org/r/129184/#review132222

> Adding this global is kinda ugly. This is the only patch here that doesn't have timings in the commit message... what's the actual overhead?

I'll just drop this patch. I don't think it matters too much.
Attachment #8857242 - Attachment is obsolete: true
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c3af9177e369
Use a set for membership testing; r=chmanchester
https://hg.mozilla.org/integration/autoland/rev/e9e8c13f08ad
Memoize tests_defaults_for_path call; r=chmanchester
https://hg.mozilla.org/integration/autoland/rev/d9a08a6f56c9
Inline specialized version of relpath(); r=chmanchester
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: