Skip to content
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

a couple of pet peves #57

Closed
wants to merge 1 commit into from
Closed

a couple of pet peves #57

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 4, 2015

Drawing bitmaps may be a bit faster due to pre-calculation of values and not repeatingly reading the same byte from memory (...by a relatively expensive pgm_read_byte call; using a temporary uint8_t for that is probably slightly faster).

Please note that I have not tested it yet.

Drawing bitmaps may be a bit faster due to pre-calculation of values and not repeatingly reading the same byte from memory (...by a relatively expensive pgm_read_byte call; using a temporary uint8_t for that is probably slightly faster).
@tdicola
Copy link
Contributor

tdicola commented Sep 22, 2015

Interesting, is it at least functionally equivalent to the current code? i.e. it still renders examples bitmaps the same as before.

@fingolfin
Copy link

This PR does a lot of code formatting. Huge parts of it do nothing but change formatting, or replacing if/else by the ternary ? : operator. That makes it rather difficult to find the actual behavior changes in it, i.e. makes reviewing the code changes harder :-(.

It also does at least on thing not described in description of the pull request: It changes drawXBitmap to simply call drawBitmap.

Anyway, as far as I can tell, the main issue (avoiding re-reading of the same byte 8 times, to get each bit) was fixed in commits 9cb1ec4 and a6a9359 so this PR might be obsolete...?

@ghost
Copy link
Author

ghost commented Jan 6, 2016

Yes, could be.
I'm sorry I did not verify my changes: I couldn't get the display work
anymore.

On Mon, Jan 4, 2016 at 12:20 AM, Max Horn notifications@github.com wrote:

This PR does a lot of code formatting. Huge parts of it do nothing but
change formatting, or replacing if/else by the ternary ? : operator. That
makes it rather difficult to find the actual behavior changes in it, i.e.
makes reviewing the code changes harder :-(.

It also does at least on thing not described in description of the pull
request: It changes drawXBitmap to simply call drawBitmap.

Anyway, as far as I can tell, the main issue (avoiding re-reading of the
same byte 8 times, to get each bit) was fixed in commits 9cb1ec4
9cb1ec4
and a6a9359
a6a9359
so this PR might be obsolete...?


Reply to this email directly or view it on GitHub
#57 (comment)
.

www.vanheusden.com www.slimwinnen.nl | www.smartwinning.info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants