Summary: | Performance improvements in read_block() | ||
---|---|---|---|
Product: | XCB | Reporter: | Markus Fleschutz <markus.fleschutz> |
Component: | Library | Assignee: | xcb mailing list dummy <xcb> |
Status: | RESOLVED NOTABUG | QA Contact: | xcb mailing list dummy <xcb> |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | 1.1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Markus Fleschutz
2010-02-03 01:46:14 UTC
I agree for the first else, but the second seems like a bad idea: poll or select might return 0. Inspection of the assembly code convinces me that the compiler does the right thing here, as I expected. So there's no performance issue. The style of the existing code isn't so bad, I think. I tried some restructurings, and couldn't find one so much better that it was worth a patch. So for now I think we'll leave the elses off. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.